diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-17 19:50:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-17 19:50:28 +0000 |
commit | ad110d2bb4e9622384b9170a34c282d650dafaac (patch) | |
tree | 61b27673fd640b3a928122756b1b70948170d5ad /include | |
parent | f25b7729c11bb1abe7e26fb0510cb3ed766358fc (diff) | |
download | llvm-ad110d2bb4e9622384b9170a34c282d650dafaac.tar.gz llvm-ad110d2bb4e9622384b9170a34c282d650dafaac.tar.bz2 llvm-ad110d2bb4e9622384b9170a34c282d650dafaac.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/CallSite.h | 3 |
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... /// |