Update for llvm api change.

llvm-svn: 204783
This commit is contained in:
Rafael Espindola 2014-03-26 05:34:18 +00:00
parent bd4de9d478
commit 02633f63eb
1 changed files with 1 additions and 1 deletions
clang/lib/CodeGen

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->resolveAliasedGlobal(/*stopOnWeak*/ false);
llvm::GlobalValue *GV = Alias->getAliasedGlobal();
if (!GV) {
Error = true;
getDiags().Report(AA->getLocation(), diag::err_cyclic_alias);