we are supposed to only create proper CallSites from an instruction (esp. CallInst and InvokeInst)

llvm-svn: 109576
This commit is contained in:
Gabor Greif 2010-07-28 10:44:59 +00:00
parent 79ac9ed7ac
commit 02fbd6b8ce
1 changed files with 2 additions and 2 deletions

View File

@ -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?");