Skip to content

Commit 4fd07ef

Browse files
author
Davide Italiano
committed
[IRGenDebugInfo] Enable an assertion.
1 parent af47110 commit 4fd07ef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,10 +2141,7 @@ void IRGenDebugInfoImpl::emitVariableDeclaration(
21412141
IRBuilder &Builder, ArrayRef<llvm::Value *> Storage, DebugTypeInfo DbgTy,
21422142
const SILDebugScope *DS, ValueDecl *VarDecl, StringRef Name, unsigned ArgNo,
21432143
IndirectionKind Indirection, ArtificialKind Artificial) {
2144-
// FIXME: Make this an assertion.
2145-
// assert(DS && "variable has no scope");
2146-
if (!DS)
2147-
return;
2144+
assert(DS && "variable has no scope");
21482145

21492146
if (Opts.DebugInfoLevel <= IRGenDebugInfoLevel::LineTables)
21502147
return;

0 commit comments

Comments
 (0)