summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorWill Dietz <wdietz2@illinois.edu>2013-01-09 03:39:41 +0000
committerWill Dietz <wdietz2@illinois.edu>2013-01-09 03:39:41 +0000
commit450f1a1f459316002e2a245a932b1809356f3452 (patch)
tree5c64bb92ad460766cd97c39c03062a241dff36ae /clang/lib/CodeGen
parent9f0b95f260d05ab149cb790bc9e5ef16f8777a69 (diff)
downloadbcm5719-llvm-450f1a1f459316002e2a245a932b1809356f3452.tar.gz
bcm5719-llvm-450f1a1f459316002e2a245a932b1809356f3452.zip
[ubsan] Make static check data non-const so it can be used for deduplication.
llvm-svn: 171947
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 461126ecb3b..e5f9672b0f8 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -1992,7 +1992,7 @@ void CodeGenFunction::EmitCheck(llvm::Value *Checked, StringRef CheckName,
llvm::Constant *Info = llvm::ConstantStruct::getAnon(StaticArgs);
llvm::GlobalValue *InfoPtr =
- new llvm::GlobalVariable(CGM.getModule(), Info->getType(), true,
+ new llvm::GlobalVariable(CGM.getModule(), Info->getType(), false,
llvm::GlobalVariable::PrivateLinkage, Info);
InfoPtr->setUnnamedAddr(true);
OpenPOWER on IntegriCloud