[llvm-commits] [llvm] r62256 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Gabor Greif
ggreif at gmail.com
Thu Jan 15 03:10:58 PST 2009
Author: ggreif
Date: Thu Jan 15 05:10:44 2009
New Revision: 62256
URL: http://llvm.org/viewvc/llvm-project?rev=62256&view=rev
Log:
minor refactoring: use a more specific API
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=62256&r1=62255&r2=62256&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Thu Jan 15 05:10:44 2009
@@ -1490,10 +1490,11 @@
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.
More information about the llvm-commits
mailing list