diff options
| author | Adrian Prantl <aprantl@apple.com> | 2014-10-02 16:42:13 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2014-10-02 16:42:13 +0000 |
| commit | 75a0dac4b399bdcbb8e137a8c5c5c1e10d444e3c (patch) | |
| tree | 4d4283d9fa4441d5ffd4824ca7a3a258703ff542 /llvm | |
| parent | dbc956d3f67d2ad4ebff4c63fd3da0ce24611c53 (diff) | |
| download | bcm5719-llvm-75a0dac4b399bdcbb8e137a8c5c5c1e10d444e3c.tar.gz bcm5719-llvm-75a0dac4b399bdcbb8e137a8c5c5c1e10d444e3c.zip | |
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
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 << "]"; } |

