diff options
| author | Adrian Prantl <aprantl@apple.com> | 2017-11-03 18:26:36 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2017-11-03 18:26:36 +0000 |
| commit | 8fe9fb0ae57b7da25bceb154f4a798d347def42f (patch) | |
| tree | b113f78c320acdcc50edec54a2059207d5babb7c /llvm/lib/Transforms/Utils | |
| parent | 3aae328318209ac11d652c93806bdce7ffd3f41f (diff) | |
| download | bcm5719-llvm-8fe9fb0ae57b7da25bceb154f4a798d347def42f.tar.gz bcm5719-llvm-8fe9fb0ae57b7da25bceb154f4a798d347def42f.zip | |
Revert "Invoke salvageDebugInfo from CodeGenPrepare's SinkCast()"
This reverts commit 317342 while investigating bot breakage.
llvm-svn: 317345
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index cb7978f76aa..8c643c93ec4 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1366,7 +1366,7 @@ void llvm::salvageDebugInfo(Instruction &I) { return MetadataAsValue::get(I.getContext(), ValueAsMetadata::get(V)); }; - if (isa<BitCastInst>(&I) || isa<IntToPtrInst>(&I)) { + if (isa<BitCastInst>(&I)) { findDbgValues(DbgValues, &I); for (auto *DVI : DbgValues) { // Bitcasts are entirely irrelevant for debug info. Rewrite the dbg.value |

