From 75a0dac4b399bdcbb8e137a8c5c5c1e10d444e3c Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 2 Oct 2014 16:42:13 +0000 Subject: Pretty-printer: Paper over an ambiguity between line table entries and tagged mdnodes. fixes http://llvm.org/bugs/show_bug.cgi?id=21131 llvm-svn: 218885 --- llvm/lib/IR/DebugInfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm') diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 206d04e3749..2226dd63be6 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/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 << "]"; } -- cgit v1.2.3