diff options
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Function.cpp | 2 | ||||
-rw-r--r-- | lib/VMCore/Instructions.cpp | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index b55a371..8f94efc 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -408,7 +408,7 @@ bool Function::hasAddressTaken(const User* *PutOffender) const { const User *U = *I; if (!isa<CallInst>(U) && !isa<InvokeInst>(U)) return PutOffender ? (*PutOffender = U, true) : true; - CallSite CS(const_cast<Instruction*>(static_cast<const Instruction*>(U))); + ImmutableCallSite CS(cast<Instruction>(U)); if (!CS.isCallee(I)) return PutOffender ? (*PutOffender = U, true) : true; } diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 11e218c..4609a64 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -43,11 +43,6 @@ using namespace llvm; else \ cast<InvokeInst>(II)->METHOD -CallSite::CallSite(Instruction *C) { - assert((isa<CallInst>(C) || isa<InvokeInst>(C)) && "Not a call!"); - I.setPointer(C); - I.setInt(isa<CallInst>(C)); -} CallingConv::ID CallSite::getCallingConv() const { CALLSITE_DELEGATE_GETTER(getCallingConv()); } |