diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-23 06:05:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-23 06:05:44 +0000 |
commit | 64729d064a98f5ee7681c0c8cc71f7681d0b3fb3 (patch) | |
tree | 4b31127d2ca75acd6606385e7d747dfa84cc627a | |
parent | 9b3d989cb7b3473fbb7f268dbc02ae32052a9cbb (diff) |
Simplify code a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18146 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPC32ISelSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPC32ISelSimple.cpp b/lib/Target/PowerPC/PPC32ISelSimple.cpp index b8546338e8..9d23173777 100644 --- a/lib/Target/PowerPC/PPC32ISelSimple.cpp +++ b/lib/Target/PowerPC/PPC32ISelSimple.cpp @@ -703,7 +703,7 @@ void PPC32ISel::copyConstantToRegister(MachineBasicBlock *MBB, BuildMI(*MBB, IP, PPC::LOADHiAddr, 2, TmpReg) .addReg(getGlobalBaseReg(MBB, IP)).addGlobalAddress(GV); - if (GV->hasWeakLinkage() || GV->isExternal() || dyn_cast<Function>(GV)) { + if (GV->hasWeakLinkage() || GV->isExternal() || isa<Function>(GV)) { BuildMI(*MBB, IP, PPC::LWZ, 2, R).addGlobalAddress(GV).addReg(TmpReg); } else { BuildMI(*MBB, IP, PPC::LA, 2, R).addReg(TmpReg).addGlobalAddress(GV); |