diff options
author | Micah Villmow <villmow@gmail.com> | 2012-10-24 17:20:04 +0000 |
---|---|---|
committer | Micah Villmow <villmow@gmail.com> | 2012-10-24 17:20:04 +0000 |
commit | 6a8f3f9e20d9bd39f1298c029c56cada1b21f399 (patch) | |
tree | bca51fb62a078e63065f7f6ee9c73afcda8f7e56 /llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp | |
parent | e81699d938f43085af66ac6681bf40c593670049 (diff) | |
download | bcm5719-llvm-6a8f3f9e20d9bd39f1298c029c56cada1b21f399.tar.gz bcm5719-llvm-6a8f3f9e20d9bd39f1298c029c56cada1b21f399.zip |
Delete a directory that wasn't supposed to be checked in yet.
llvm-svn: 166591
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 c6244a55c93..8536e9a41a2 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(); + Type *PtrTy = Ty->getPointerTo(Addr->getType()); 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(); + Type *PtrTy = Ty->getPointerTo(Addr->getType()); Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), IRB.CreateIntCast(SI->getValueOperand(), Ty, false), createOrdering(&IRB, SI->getOrdering())}; |