SimplifyCFG: ValidLookupTableConstant should be static
authorHans Wennborg <hans@hanshq.net>
Fri, 7 Sep 2012 08:22:57 +0000 (08:22 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 7 Sep 2012 08:22:57 +0000 (08:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163378 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyCFG.cpp

index d757c05c99cf5b8f62bc3a6001ef340183e2934f..3df309958b2bdc4a15b81548cb50205b309f8167 100644 (file)
@@ -2981,7 +2981,7 @@ static bool ForwardSwitchConditionToPHI(SwitchInst *SI) {
 
 /// ValidLookupTableConstant - Return true if the backend will be able to handle
 /// initializing an array of constants like C.
-bool ValidLookupTableConstant(Constant *C) {
+static bool ValidLookupTableConstant(Constant *C) {
   if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
     return CE->isGEPWithNoNotionalOverIndexing();