summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/IR/DebugInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp
index 369895ce56..4d5ae260f6 100644
--- a/lib/IR/DebugInfo.cpp
+++ b/lib/IR/DebugInfo.cpp
@@ -711,9 +711,7 @@ DIScope DIScope::getContext() const {
if (isNameSpace())
return DINameSpace(DbgNode).getContext();
- if (isFile() || isCompileUnit())
- return DIScope();
-
+ assert(isFile() || isCompileUnit() && "Unhandled type of scope.");
return DIScope();
}