diff options
author | Pierre-vh <pierre.vanhoutryve@arm.com> | 2020-02-27 12:32:51 +0000 |
---|---|---|
committer | Pierre-vh <pierre.vanhoutryve@arm.com> | 2020-02-27 16:14:11 +0000 |
commit | f64e457cb75b61f6566de8327a1bfae498d5a296 (patch) | |
tree | 74aba3929d3aa7d599a715d09c52e7c2d1a31204 /llvm/lib/Transforms/Utils/Debugify.cpp | |
parent | 00072c08c75050ae2c835b7bb0e505475dbcd7b9 (diff) | |
download | llvm-f64e457cb75b61f6566de8327a1bfae498d5a296.zip llvm-f64e457cb75b61f6566de8327a1bfae498d5a296.tar.gz llvm-f64e457cb75b61f6566de8327a1bfae498d5a296.tar.bz2 |
[Transforms][Debugify] Ignore PHI nodes when checking for DebugLocs
Fix for: https://bugs.llvm.org/show_bug.cgi?id=37964
Differential Revision: https://reviews.llvm.org/D75242
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Debugify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp index b7b4bfa..b1274d9 100644 --- a/llvm/lib/Transforms/Utils/Debugify.cpp +++ b/llvm/lib/Transforms/Utils/Debugify.cpp @@ -233,7 +233,7 @@ bool checkDebugifyMetadata(Module &M, // Find missing lines. for (Instruction &I : instructions(F)) { - if (isa<DbgValueInst>(&I)) + if (isa<DbgValueInst>(&I) || isa<PHINode>(&I)) continue; auto DL = I.getDebugLoc(); |