[llvm] [DebugInfo][RemoveDIs] Use autoupgrader to convert old debug-info (PR #143452)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 10 02:51:06 PDT 2025
================
@@ -4867,22 +4874,31 @@ void AssemblyWriter::printDbgVariableRecord(const DbgVariableRecord &DVR) {
llvm_unreachable(
"Tried to print a DbgVariableRecord with an invalid LocationType!");
}
+
+ auto PrintOrNull = [&](Metadata *M) {
+ if (!M) {
+ Out << "(null)";
+ } else {
+ WriteAsOperandInternal(Out, M, WriterCtx, true);
+ }
----------------
OCHyams wrote:
style nit: don't need braces on the if. Also clang-format bot looks upset
https://github.com/llvm/llvm-project/pull/143452
More information about the llvm-commits
mailing list