diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-05-22 21:28:01 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-05-22 21:28:01 +0000 |
commit | 8924ecceb6e0e7d29e9bfe14ee378b5c22aea347 (patch) | |
tree | 7edcf3a226725ae17c8a52a50420bb5c2d6fc075 | |
parent | 6db25e01e9a347fe9c536277ceed8bee17e3eff4 (diff) | |
download | llvm-8924ecceb6e0e7d29e9bfe14ee378b5c22aea347.zip llvm-8924ecceb6e0e7d29e9bfe14ee378b5c22aea347.tar.gz llvm-8924ecceb6e0e7d29e9bfe14ee378b5c22aea347.tar.bz2 |
Merge from mainline.
llvm-svn: 51444
-rw-r--r-- | llvm/include/llvm/User.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/User.h b/llvm/include/llvm/User.h index d3e4f1e..ec76490 100644 --- a/llvm/include/llvm/User.h +++ b/llvm/include/llvm/User.h @@ -46,6 +46,11 @@ protected: : Value(Ty, vty), OperandList(OpList), NumOperands(NumOps) {} public: + /// placement delete - required by std, but never called. + void operator delete(void*, size_t) { + assert(0 && "Constructor throws?"); + } + Value *getOperand(unsigned i) const { assert(i < NumOperands && "getOperand() out of range!"); return OperandList[i]; |