From: Jay Foad Date: Mon, 1 Aug 2011 12:27:15 +0000 (+0000) Subject: Remove an unnecessary cast. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b899d959332871eb62dc22a9ffd81e0e97d96710;p=oota-llvm.git Remove an unnecessary cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136609 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 1297e108b85..42d042e2303 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -880,7 +880,7 @@ bool AsmPrinter::doFinalization(Module &M) { I != E; ++I) { MCSymbol *Name = Mang->getSymbol(I); - const GlobalValue *GV = cast(I->getAliasedGlobal()); + const GlobalValue *GV = I->getAliasedGlobal(); MCSymbol *Target = Mang->getSymbol(GV); if (I->hasExternalLinkage() || !MAI->getWeakRefDirective())