forked from OSchip/llvm-project
parent
bd4de9d478
commit
02633f63eb
clang/lib/CodeGen
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue