aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-03-09 15:15:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-03-09 15:15:22 +0000
commit2c39b0605fff0600714532d348d24aa42a55477f (patch)
treee810521044c5cdeeef765855ab1784a1b17ee511 /lib/CodeGen
parent0415998dd77986630efe8f1aed633519cc41e1f3 (diff)
Make helper function static.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGExpr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index a170028def..830b1218c1 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -670,8 +670,8 @@ static bool isFlexibleArrayMemberExpr(const Expr *E) {
/// If Base is known to point to the start of an array, return the length of
/// that array. Return 0 if the length cannot be determined.
-llvm::Value *getArrayIndexingBound(CodeGenFunction &CGF, const Expr *Base,
- QualType &IndexedType) {
+static llvm::Value *getArrayIndexingBound(
+ CodeGenFunction &CGF, const Expr *Base, QualType &IndexedType) {
// For the vector indexing extension, the bound is the number of elements.
if (const VectorType *VT = Base->getType()->getAs<VectorType>()) {
IndexedType = Base->getType();