Reject alias to undefined symbols in the verifier.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / AsmPrinter.cpp
index ebca8e544baa5801ed6dcebb6a095be93face273..66ce4e1075d72763288391c28eb644ad37a72d63 100644 (file)
@@ -928,11 +928,7 @@ bool AsmPrinter::doFinalization(Module &M) {
       MCSymbol *Name = getSymbol(I);
 
       const GlobalValue *GV = I->getAliasedGlobal();
-      if (GV->isDeclaration()) {
-        report_fatal_error(Name->getName() +
-                           ": Target doesn't support aliases to declarations");
-      }
-
+      assert(!GV->isDeclaration());
       MCSymbol *Target = getSymbol(GV);
 
       if (I->hasExternalLinkage() || !MAI->getWeakRefDirective())