[llvm] r288568 - [sanitizer-coverage] use IRB.SetCurrentDebugLocation after IRB.SetInsertPoint
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 17:43:30 PST 2016
Author: kcc
Date: Fri Dec 2 19:43:30 2016
New Revision: 288568
URL: http://llvm.org/viewvc/llvm-project?rev=288568&view=rev
Log:
[sanitizer-coverage] use IRB.SetCurrentDebugLocation after IRB.SetInsertPoint
Modified:
llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp?rev=288568&r1=288567&r2=288568&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp Fri Dec 2 19:43:30 2016
@@ -705,8 +705,8 @@ void SanitizerCoverageModule::InjectCove
GuardLoad, Constant::getNullValue(GuardLoad->getType()));
auto Ins = SplitBlockAndInsertIfThen(
Cmp, &*IP, false, MDBuilder(*C).createBranchWeights(1, 100000));
- IRB.SetCurrentDebugLocation(EntryLoc);
IRB.SetInsertPoint(Ins);
+ IRB.SetCurrentDebugLocation(EntryLoc);
}
IRB.CreateCall(SanCovTracePCGuard, GuardPtr);
IRB.CreateCall(EmptyAsm, {}); // Avoids callback merge.
More information about the llvm-commits
mailing list