Index: src/IceELFObjectWriter.cpp |
diff --git a/src/IceELFObjectWriter.cpp b/src/IceELFObjectWriter.cpp |
index 25c2bf3aebb48acece2797e5268b1cd65ff50a0f..9e1d44ed7352f2567ca82910ed6a03616d96b18c 100644 |
--- a/src/IceELFObjectWriter.cpp |
+++ b/src/IceELFObjectWriter.cpp |
@@ -605,7 +605,9 @@ void ELFObjectWriter::setUndefinedSyms(const ConstantList &UndefSyms) { |
Ctx.getIntrinsicsInfo().find(Name, BadIntrinsic); |
if (Info) |
continue; |
- assert(!BadIntrinsic); |
+ // Ignore BadIntrinsic, which is set if the name begins with "llvm." but |
+ // doesn't match a known intrinsic. If we want this to turn into an error, |
+ // we should catch it early on. |
assert(Sym->getOffset() == 0); |
assert(Sym->getSuppressMangling()); |
SymTab->noteUndefinedSym(Name, NullSection); |