summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-03-19 12:56:38 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-03-19 12:56:38 +0000
commiteef411a52acd45047519cddebc459aa690ce81f2 (patch)
treeca0358020b67702bda5e8cf9a039e81dcc05d2e5 /lib/Transforms/Instrumentation
parent59ae7294ef33df16c2901eded79da2f43dddbaa9 (diff)
downloadllvm-eef411a52acd45047519cddebc459aa690ce81f2.tar.gz
llvm-eef411a52acd45047519cddebc459aa690ce81f2.tar.bz2
llvm-eef411a52acd45047519cddebc459aa690ce81f2.tar.xz
Set debug info for instructions inserted in SplitBlockAndInsertIfThen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r--lib/Transforms/Instrumentation/MemorySanitizer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index c07892229d..a9c7985054 100644
--- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -600,8 +600,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
IRB.CreateStore(Origin ? (Value*)Origin : (Value*)IRB.getInt32(0),
MS.OriginTLS);
}
- CallInst *Call = IRB.CreateCall(MS.WarningFn);
- Call->setDebugLoc(OrigIns->getDebugLoc());
+ IRB.CreateCall(MS.WarningFn);
IRB.CreateCall(MS.EmptyAsm);
DEBUG(dbgs() << " CHECK: " << *Cmp << "\n");
}