diff options
| author | Micah Villmow <villmow@gmail.com> | 2012-10-24 17:25:11 +0000 |
|---|---|---|
| committer | Micah Villmow <villmow@gmail.com> | 2012-10-24 17:25:11 +0000 |
| commit | 51e7246cb4e9d0d5d0c3cdecc84401008c31fde7 (patch) | |
| tree | 9a94461ccdb5e830c6ba40c2c1123384cf7b2cc0 /llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp | |
| parent | ac9a344915a7e886fadd723b59ca83e9400659d9 (diff) | |
| download | bcm5719-llvm-51e7246cb4e9d0d5d0c3cdecc84401008c31fde7.tar.gz bcm5719-llvm-51e7246cb4e9d0d5d0c3cdecc84401008c31fde7.zip | |
Back out r166591, not sure why this made it through since I cancelled the command. Bleh, sorry about this!
llvm-svn: 166596
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp index 8536e9a41a2..c6244a55c93 100644 --- a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp @@ -375,7 +375,7 @@ bool ThreadSanitizer::instrumentAtomic(Instruction *I) { const size_t ByteSize = 1 << Idx; const size_t BitSize = ByteSize * 8; Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); - Type *PtrTy = Ty->getPointerTo(Addr->getType()); + Type *PtrTy = Ty->getPointerTo(); Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), createOrdering(&IRB, LI->getOrdering())}; CallInst *C = CallInst::Create(TsanAtomicLoad[Idx], @@ -390,7 +390,7 @@ bool ThreadSanitizer::instrumentAtomic(Instruction *I) { const size_t ByteSize = 1 << Idx; const size_t BitSize = ByteSize * 8; Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); - Type *PtrTy = Ty->getPointerTo(Addr->getType()); + Type *PtrTy = Ty->getPointerTo(); Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), IRB.CreateIntCast(SI->getValueOperand(), Ty, false), createOrdering(&IRB, SI->getOrdering())}; |

