forked from OSchip/llvm-project
Revert "Update for llvm api change."
This reverts commit r204783. llvm-svn: 204785
This commit is contained in:
parent
65481d7b97
commit
2f8d0104b0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue