diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-06 22:52:30 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-06 22:52:30 +0000 |
commit | 82c02b28f3a1a3adef1638e801999952a2e47f1b (patch) | |
tree | e6892060704d4f123712bf8efc02824f7591f08e /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | ac81a5aad54e2d0c95a4fa436765006b671283dd (diff) | |
download | bcm5719-llvm-82c02b28f3a1a3adef1638e801999952a2e47f1b.tar.gz bcm5719-llvm-82c02b28f3a1a3adef1638e801999952a2e47f1b.zip |
Make StripPointerCast a common function (should we mak it method of Value instead?)
llvm-svn: 50775
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8c606b886b6..ea047e683f5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2712,7 +2712,7 @@ void SelectionDAGLowering::visitTargetIntrinsic(CallInst &I, /// ExtractTypeInfo - Returns the type info, possibly bitcast, encoded in V. static GlobalVariable *ExtractTypeInfo (Value *V) { - V = IntrinsicInst::StripPointerCasts(V); + V = StripPointerCasts(V); GlobalVariable *GV = dyn_cast<GlobalVariable>(V); assert ((GV || isa<ConstantPointerNull>(V)) && "TypeInfo must be a global variable or NULL"); @@ -3150,8 +3150,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { return 0; case Intrinsic::init_trampoline: { - const Function *F = - cast<Function>(IntrinsicInst::StripPointerCasts(I.getOperand(2))); + const Function *F = cast<Function>(StripPointerCasts(I.getOperand(2))); SDOperand Ops[6]; Ops[0] = getRoot(); |