aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/Mips/MipsFastISel.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-04-10 11:24:51 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-04-10 11:24:51 +0000
commit619c4e57ba8d8caac7a0ce41c403427f47ab50ee (patch)
tree7e2e5cdff47178c8a291f148e1fe08dfe72a144c /llvm/lib/Target/Mips/MipsFastISel.cpp
parente9c336aeb53b4137c214aa119067803f6464fae8 (diff)
downloadllvm-619c4e57ba8d8caac7a0ce41c403427f47ab50ee.zip
llvm-619c4e57ba8d8caac7a0ce41c403427f47ab50ee.tar.gz
llvm-619c4e57ba8d8caac7a0ce41c403427f47ab50ee.tar.bz2
Reduce dyn_cast<> to isa<> or cast<> where possible.
No functional change intended. llvm-svn: 234586
Diffstat (limited to 'llvm/lib/Target/Mips/MipsFastISel.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsFastISel.cpp b/llvm/lib/Target/Mips/MipsFastISel.cpp
index 7de0081..e8e3d3d4 100644
--- a/llvm/lib/Target/Mips/MipsFastISel.cpp
+++ b/llvm/lib/Target/Mips/MipsFastISel.cpp
@@ -440,7 +440,7 @@ bool MipsFastISel::computeAddress(const Value *Obj, Address &Addr) {
bool MipsFastISel::computeCallAddress(const Value *V, Address &Addr) {
const GlobalValue *GV = dyn_cast<GlobalValue>(V);
- if (GV && isa<Function>(GV) && dyn_cast<Function>(GV)->isIntrinsic())
+ if (GV && isa<Function>(GV) && cast<Function>(GV)->isIntrinsic())
return false;
if (!GV)
return false;