From 8ceff5c2b2d2dba9ba04d614b9207f8785d8dd83 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 2 Oct 2014 16:42:13 +0000 Subject: [PATCH] Pretty-printer: Paper over an ambiguity between line table entries and tagged mdnodes. fixes http://llvm.org/bugs/show_bug.cgi?id=21131 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218885 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/DebugInfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 206d04e3749..2226dd63be6 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -1460,7 +1460,9 @@ void DIExpression::printInternal(raw_ostream &OS) const { break; } default: - break; + // Else bail out early. This may be a line table entry. + OS << "Unknown]"; + return; } OS << "]"; } -- 2.34.1