Skip to content

Commit 1e08ffe

Browse files
committed
Redundant Assert In AsmWriter
1 parent dd3c4fb commit 1e08ffe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/IR/AsmWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2117,7 +2117,6 @@ static void writeDIGenericSubrange(raw_ostream &Out, const DIGenericSubrange *N,
21172117
};
21182118

21192119
auto GetConstant = [&](Metadata *Bound) -> int64_t {
2120-
assert(IsConstant(Bound) && "Expected constant");
21212120
auto *BE = dyn_cast_or_null<DIExpression>(Bound);
21222121
return static_cast<int64_t>(BE->getElement(1));
21232122
};

0 commit comments

Comments
 (0)