Skip to content

Commit 5c32879

Browse files
committed
fix another constexpr crash
1 parent aa737f3 commit 5c32879

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm_util/llvm2alive.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,7 @@ class llvm2alive_ : public llvm::InstVisitor<llvm2alive_, unique_ptr<Instr>> {
15831583
// If there is a global variable with initializer, put them at init block.
15841584
auto &entry_name = Fn.getFirstBB().getName();
15851585
BB = &Fn.getBB("#init", true);
1586+
insert_constexpr_before = nullptr;
15861587

15871588
// Ensure all src globals exist in target as well
15881589
for (auto &gvname : gvnamesInSrc) {

0 commit comments

Comments
 (0)