diff options
author | Kostya Serebryany <kcc@google.com> | 2012-01-28 04:27:16 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-01-28 04:27:16 +0000 |
commit | 7471d1303dd301911d28167d799b5db4093a0e82 (patch) | |
tree | c753001ba79bd58f1ab7d8473540ba7e753e1aad /llvm/lib/Transforms | |
parent | b10ebda3542ef0375f00ec2e1b21c9cc40f1896a (diff) | |
download | bcm5719-llvm-7471d1303dd301911d28167d799b5db4093a0e82.tar.gz bcm5719-llvm-7471d1303dd301911d28167d799b5db4093a0e82.zip |
[asan] correctly use ConstantExpr::getGetElementPtr. Catch by NAKAMURA Takumi
llvm-svn: 149172
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 3f0681517e3..e8fb4d5c47a 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -484,7 +484,7 @@ bool AddressSanitizer::insertGlobalRedzones(Module &M) { Indices2[1] = IRB.getInt32(0); G->replaceAllUsesWith( - ConstantExpr::getGetElementPtr(NewGlobal, Indices2, 2)); + ConstantExpr::getGetElementPtr(NewGlobal, Indices2, true)); NewGlobal->takeName(G); G->eraseFromParent(); |