From 756f0d2ab4036b154bd1199aee839652f7b0f10a Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 28 Jul 2010 10:44:59 +0000 Subject: we are supposed to only create proper CallSites from an instruction (esp. CallInst and InvokeInst) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109576 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CallSite.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm/Support/CallSite.h') diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 56f5aa9..c2d78b1 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -49,8 +49,8 @@ protected: PointerIntPair 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?"); -- cgit v1.1