Another example of a static table that wasn't marked static.
authorDuncan Sands <baldrick@free.fr>
Tue, 26 Apr 2011 07:30:10 +0000 (07:30 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 26 Apr 2011 07:30:10 +0000 (07:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130193 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Function.cpp

index a5ec73d851dc8294e158035d255cad789e3b1120..013c4587c9fc4290c0e23d276e9d13599a704c2e 100644 (file)
@@ -363,7 +363,7 @@ const FunctionType *Intrinsic::getType(LLVMContext &Context,
 }
 
 bool Intrinsic::isOverloaded(ID id) {
-  const bool OTable[] = {
+  static const bool OTable[] = {
     false,
 #define GET_INTRINSIC_OVERLOAD_TABLE
 #include "llvm/Intrinsics.gen"