aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Debugify.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2020-06-18 14:17:07 -0700
committerVedant Kumar <vsk@apple.com>2020-06-26 14:55:02 -0700
commitc1cad151b03c2b05983d569ba3bc05fd74d4dfdc (patch)
tree54ea94dc3df9162df72ac288a64e6f8f9755de7f /llvm/lib/Transforms/Utils/Debugify.cpp
parent898b01602ba5d53f14306962423fb02615030cd1 (diff)
downloadllvm-c1cad151b03c2b05983d569ba3bc05fd74d4dfdc.zip
llvm-c1cad151b03c2b05983d569ba3bc05fd74d4dfdc.tar.gz
llvm-c1cad151b03c2b05983d569ba3bc05fd74d4dfdc.tar.bz2
[debugify] Demote an error about empty locations to a warning
In https://reviews.llvm.org/D81198, we outlined a number of scenarios where dropping debug locations is appropriate. Stop issuing an error when this happens.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Debugify.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp
index 7c178ab..8f98d81 100644
--- a/llvm/lib/Transforms/Utils/Debugify.cpp
+++ b/llvm/lib/Transforms/Utils/Debugify.cpp
@@ -330,11 +330,10 @@ bool checkDebugifyMetadata(Module &M,
}
if (!DL) {
- dbg() << "ERROR: Instruction with empty DebugLoc in function ";
+ dbg() << "WARNING: Instruction with empty DebugLoc in function ";
dbg() << F.getName() << " --";
I.print(dbg());
dbg() << "\n";
- HasErrors = true;
}
}