Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Merge from mainline.
Browse files Browse the repository at this point in the history
git-svn-id: http://llvm.org/svn/llvm-project/llvm/branches/release_23@51444 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Tanya Lattner committed May 22, 2008
1 parent c6162ec commit 13c30b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/llvm/User.h
Expand Up @@ -46,6 +46,11 @@ class User : public Value {
: 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];
Expand Down

0 comments on commit 13c30b2

Please sign in to comment.