summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-10-17 00:34:34 +0000
committerNico Weber <nicolasweber@gmx.de>2012-10-17 00:34:34 +0000
commit9272407c3977fe51a03fa546eda251da696874f5 (patch)
tree1c43a40c9fdd4454cfc5fc28a6873d9fc6f5334e /clang/lib/CodeGen/CodeGenModule.cpp
parent44d6361ed76785b907992fda2639e55092a253cb (diff)
downloadbcm5719-llvm-9272407c3977fe51a03fa546eda251da696874f5.tar.gz
bcm5719-llvm-9272407c3977fe51a03fa546eda251da696874f5.zip
"'Might as well make it static const.' -- John McCall" -- Michael Scott
llvm-svn: 166080
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 3353612c905..e9344a1351b 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/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));
OpenPOWER on IntegriCloud