diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-08-01 12:27:15 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-08-01 12:27:15 +0000 |
commit | b899d959332871eb62dc22a9ffd81e0e97d96710 (patch) | |
tree | 0155f1d0588684300fff541e2d3846f72978cc11 /lib | |
parent | 4f2d6950fb4dfc91359e549dd454059d2cb2cb5f (diff) | |
download | external_llvm-b899d959332871eb62dc22a9ffd81e0e97d96710.zip external_llvm-b899d959332871eb62dc22a9ffd81e0e97d96710.tar.gz external_llvm-b899d959332871eb62dc22a9ffd81e0e97d96710.tar.bz2 |
Remove an unnecessary cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 1297e10..42d042e 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<GlobalValue>(I->getAliasedGlobal()); + const GlobalValue *GV = I->getAliasedGlobal(); MCSymbol *Target = Mang->getSymbol(GV); if (I->hasExternalLinkage() || !MAI->getWeakRefDirective()) |