Revert "Update for llvm api change."

This reverts commit r204783.

llvm-svn: 204785
This commit is contained in:
Rafael Espindola 2014-03-26 06:14:54 +00:00
parent 65481d7b97
commit 2f8d0104b0
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ void CodeGenModule::checkAliases() {
StringRef MangledName = getMangledName(GD);
llvm::GlobalValue *Entry = GetGlobalValue(MangledName);
llvm::GlobalAlias *Alias = cast<llvm::GlobalAlias>(Entry);
llvm::GlobalValue *GV = Alias->getAliasedGlobal();
llvm::GlobalValue *GV = Alias->resolveAliasedGlobal(/*stopOnWeak*/ false);
if (!GV) {
Error = true;
getDiags().Report(AA->getLocation(), diag::err_cyclic_alias);