we are supposed to only create proper CallSites from an instruction (esp. CallInst...
authorGabor Greif <ggreif@gmail.com>
Wed, 28 Jul 2010 10:44:59 +0000 (10:44 +0000)
committerGabor Greif <ggreif@gmail.com>
Wed, 28 Jul 2010 10:44:59 +0000 (10:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109576 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CallSite.h

index 56f5aa9ca93260c5218988f6b7ed5f540a0e43fe..c2d78b17a42157845622eea1af10a6f5620ed91e 100644 (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?");