diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-01-15 11:10:44 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-01-15 11:10:44 +0000 |
commit | b67e6b3b65f88d63cf483f47057beac5b8f55edf (patch) | |
tree | d6319f59b1a0ba44bb2f9a435093229ab20890b9 | |
parent | 94bd57e154088f2d45c465e73f896f64f6da4ade (diff) | |
download | external_llvm-b67e6b3b65f88d63cf483f47057beac5b8f55edf.zip external_llvm-b67e6b3b65f88d63cf483f47057beac5b8f55edf.tar.gz external_llvm-b67e6b3b65f88d63cf483f47057beac5b8f55edf.tar.bz2 |
minor refactoring: use a more specific API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62256 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index d786e5e..5740cc9 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -1490,10 +1490,11 @@ void SelectionDAGLowering::visitInvoke(InvokeInst &I) { MachineBasicBlock *Return = FuncInfo.MBBMap[I.getSuccessor(0)]; MachineBasicBlock *LandingPad = FuncInfo.MBBMap[I.getSuccessor(1)]; - if (isa<InlineAsm>(I.getCalledValue())) + const Value *Callee(I.getCalledValue()); + if (isa<InlineAsm>(Callee)) visitInlineAsm(&I); else - LowerCallTo(&I, getValue(I.getOperand(0)), false, LandingPad); + LowerCallTo(&I, getValue(Callee), false, LandingPad); // If the value of the invoke is used outside of its defining block, make it // available as a virtual register. |