aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-28 10:44:59 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-28 10:44:59 +0000
commit756f0d2ab4036b154bd1199aee839652f7b0f10a (patch)
tree2e0241f0357c3954aad01054870563983adca5ed /include
parentbc16827be6d8c29bd9a541444c6fc3bf69ce9b00 (diff)
downloadexternal_llvm-756f0d2ab4036b154bd1199aee839652f7b0f10a.zip
external_llvm-756f0d2ab4036b154bd1199aee839652f7b0f10a.tar.gz
external_llvm-756f0d2ab4036b154bd1199aee839652f7b0f10a.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/CallSite.h4
1 files changed, 2 insertions, 2 deletions
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<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?");