llvm.org GIT mirror llvm / b074f80
Suppress warnings about missing placement delete. This should now be std-conformant even if compiled with exceptions on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51429 91177308-0d34-0410-b5e6-96231b3b80d8 Gabor Greif 12 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
241241 ~User() {
242242 Use::zap(OperandList, OperandList + NumOperands);
243243 }
244 /// operator delete - free memory allocated for User and Use objects
244245 void operator delete(void *Usr);
246 /// placement delete - required by std, but never called.
247 void operator delete(void*, unsigned) {
248 assert(0 && "Constructor throws?");
249 }
245250 template Use &Op() {
246251 return OperandTraits::op_begin(this)[Idx];
247252 }