forked from OSchip/llvm-project
we are supposed to only create proper CallSites from an instruction (esp. CallInst and InvokeInst)
llvm-svn: 109576
This commit is contained in:
parent
79ac9ed7ac
commit
02fbd6b8ce
|
@ -49,8 +49,8 @@ protected:
|
|||
PointerIntPair<InstrTy*, 1, bool> I;
|
||||
public:
|
||||
CallSiteBase() : I(0, false) {}
|
||||
CallSiteBase(CallTy *CI) : I(CI, true) { /*assert(CI);*/ }
|
||||
CallSiteBase(InvokeTy *II) : I(II, false) { /*assert(II);*/ }
|
||||
CallSiteBase(CallTy *CI) : I(CI, true) { assert(CI); }
|
||||
CallSiteBase(InvokeTy *II) : I(II, false) { assert(II); }
|
||||
CallSiteBase(ValTy *II) { *this = get(II); }
|
||||
CallSiteBase(InstrTy *II) {
|
||||
assert(II && "Null instruction given?");
|
||||
|
|
Loading…
Reference in New Issue