// If they agree, just RAUW the old value with the alias and remove the

845

// forward ref info.

846

GVal->replaceAllUsesWith(GA.get());

847

GVal->eraseFromParent();

848

}

849

850

// Insert into the module, we know its name won't collide now.

851

if (IsAlias)

852

M->getAliasList().push_back(cast<GlobalAlias>(GA.get()));

853

else

854

M->getIFuncList().push_back(cast<GlobalIFunc>(GA.get()));

855

assert(GA->getName() == Name && "Should not be a name conflict!")(static_cast <bool> (GA->getName() == Name && "Should not be a name conflict!") ? void (0) : __assert_fail ("GA->getName() == Name && \"Should not be a name conflict!\"", "/build/llvm-toolchain-snapshot-7~svn325118/lib/AsmParser/LLParser.cpp", 855, __extension__ __PRETTY_FUNCTION__));