]> granicus.if.org Git - clang/commitdiff
Make helper function static.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 9 Mar 2013 15:15:22 +0000 (15:15 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 9 Mar 2013 15:15:22 +0000 (15:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176767 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp

index a170028defc240f0bc84a097db41cdf0794303f2..830b1218c19308ab893ba35a814f3c2908f11599 100644 (file)
@@ -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();