diff options
| -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 << "]"; } |

