Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit c403bd8

Browse files
committed
temporary workaround for pathological 40x slower linking issue
1 parent 0a32879 commit c403bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IR/Verifier.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,10 @@ void Verifier::visitGlobalVariable(GlobalVariable &GV) {
503503
}
504504
}
505505

506-
if (!GV.hasInitializer()) {
506+
//if (!GV.hasInitializer()) { // XXX EMSCRIPTEN - do not do extra verification below, 40x slower linking on some big projects
507507
visitGlobalValue(GV);
508508
return;
509-
}
509+
//}
510510

511511
// Walk any aggregate initializers looking for bitcasts between address spaces
512512
SmallPtrSet<const Value *, 4> Visited;

0 commit comments

Comments
 (0)