aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/CallSite.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h
index 066572efde..48045dc3e3 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...
///