1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Fix stripDebugInfo: was modifying "DebugLoc" attached to the intrinsic after deleting it.

Fix MSAN build.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 268849
This commit is contained in:
Mehdi Amini 2016-05-07 05:07:47 +00:00
parent 46124f6758
commit 24eaf9319e

View File

@ -261,6 +261,7 @@ bool llvm::stripDebugInfo(Function &F) {
CI->getCalledFunction() == DbgVal)) {
CI->eraseFromParent();
Changed = true;
continue;
}
if (I.getDebugLoc()) {
Changed = true;