diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-10-17 00:34:34 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-10-17 00:34:34 +0000 |
commit | 193646f16d90f004123965606ec3fae180beafe1 (patch) | |
tree | c4f74cf11d03035420dbc15543d1e02084742aff /lib/CodeGen/CodeGenModule.cpp | |
parent | 07f8cf4ec3ffb6668b35e7b864354faa76167209 (diff) |
"'Might as well make it static const.' -- John McCall" -- Michael Scott
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 3353612c90..e9344a1351 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -2824,7 +2824,7 @@ llvm::Constant *CodeGenModule::EmitUuidofInitializer(StringRef Uuid, llvm::APInt Field0(32, StringRef(Uuidstr , 8), 16); llvm::APInt Field1(16, StringRef(Uuidstr + 9, 4), 16); llvm::APInt Field2(16, StringRef(Uuidstr + 14, 4), 16); - int Field3ValueOffsets[] = { 19, 21, 24, 26, 28, 30, 32, 34 }; + static const int Field3ValueOffsets[] = { 19, 21, 24, 26, 28, 30, 32, 34 }; APValue InitStruct(APValue::UninitStruct(), /*NumBases=*/0, /*NumFields=*/4); InitStruct.getStructField(0) = APValue(llvm::APSInt(Field0)); |