From ad110d2bb4e9622384b9170a34c282d650dafaac Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Jun 2003 19:50:28 +0000 Subject: [PATCH] Make CallSite's default constructable, copyable, and assignable (explicitly) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6749 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CallSite.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 066572efde8..48045dc3e35 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -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... ///