Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 78f9cbf

Browse files
committed
Relax the assertion in cmpInlineAsm
https://bugs.llvm.org/show_bug.cgi?id=37339
1 parent 599282d commit 78f9cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Transforms/Utils/FunctionComparator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ int FunctionComparator::cmpInlineAsm(const InlineAsm *L,
710710
return Res;
711711
if (int Res = cmpNumbers(L->getDialect(), R->getDialect()))
712712
return Res;
713-
llvm_unreachable("InlineAsm blocks were not uniqued.");
713+
assert(L->getFunctionType() != R->getFunctionType());
714714
return 0;
715715
}
716716

0 commit comments

Comments
 (0)