From db597e2297f8e1b204959deca03e0466147cc0d1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 16 May 2014 22:20:18 +0000 Subject: [PATCH] Use getAliasee instead of getAliasedGlobal. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209038 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index fa9ddf0222..2d11148d9f 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -204,7 +204,7 @@ void CodeGenModule::applyReplacements() { auto *NewF = dyn_cast(Replacement); if (!NewF) { if (auto *Alias = dyn_cast(Replacement)) { - NewF = dyn_cast(Alias->getAliasedGlobal()); + NewF = dyn_cast(Alias->getAliasee()); } else { auto *CE = cast(Replacement); assert(CE->getOpcode() == llvm::Instruction::BitCast || @@ -237,7 +237,7 @@ void CodeGenModule::checkAliases() { StringRef MangledName = getMangledName(GD); llvm::GlobalValue *Entry = GetGlobalValue(MangledName); auto *Alias = cast(Entry); - llvm::GlobalValue *GV = Alias->getAliasedGlobal(); + llvm::GlobalValue *GV = Alias->getAliasee(); if (GV->isDeclaration()) { Error = true; Diags.Report(AA->getLocation(), diag::err_alias_to_undefined); -- 2.40.0