Make CallSite's default constructable, copyable, and assignable (explicitly)
authorChris Lattner <sabre@nondot.org>
Tue, 17 Jun 2003 19:50:28 +0000 (19:50 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Jun 2003 19:50:28 +0000 (19:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6749 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CallSite.h

index 066572efde847198daca2983ba5a968a10335a20..48045dc3e3555bbfe709bef7fe72d82cd4cace85 100644 (file)
@@ -16,8 +16,11 @@ class InvokeInst;
 class CallSite {
   Instruction *I;
 public:
+  CallSite() : I(0) {}
   CallSite(CallInst *CI) : I((Instruction*)CI) {}
   CallSite(InvokeInst *II) : I((Instruction*)II) {}
+  CallSite(const CallSite &CS) : I(CS.I) {}
+  CallSite &operator=(const CallSite &CS) { I = CS.I; return *this; }
 
   /// getCalledValue - Return the pointer to function that is being called...
   ///