summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-08-01 12:27:15 +0000
committerJay Foad <jay.foad@gmail.com>2011-08-01 12:27:15 +0000
commit8dfee5f6bf23bb9b6484393d1aaa41e353771519 (patch)
tree324cd4e506deb884f861fb05f388a66ee3a470e4 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent97c14a6b39569f71d95b9d705d1e26a8bbe368f5 (diff)
downloadbcm5719-llvm-8dfee5f6bf23bb9b6484393d1aaa41e353771519.tar.gz
bcm5719-llvm-8dfee5f6bf23bb9b6484393d1aaa41e353771519.zip
Remove an unnecessary cast.
llvm-svn: 136609
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 1297e108b85..42d042e2303 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud