projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44d6361
)
"'Might as well make it static const.' -- John McCall" -- Michael Scott
author
Nico Weber
<nicolasweber@gmx.de>
Wed, 17 Oct 2012 00:34:34 +0000
(
00:34
+0000)
committer
Nico Weber
<nicolasweber@gmx.de>
Wed, 17 Oct 2012 00:34:34 +0000
(
00:34
+0000)
llvm-svn: 166080
clang/lib/CodeGen/CodeGenModule.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CodeGenModule.cpp
b/clang/lib/CodeGen/CodeGenModule.cpp
index
3353612
..
e9344a1
100644
(file)
--- 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));