[cfe-commits] r113863 - /cfe/trunk/lib/CodeGen/CGExprCXX.cpp
John McCall
rjmccall at apple.com
Tue Sep 14 14:45:42 PDT 2010
Author: rjmccall
Date: Tue Sep 14 16:45:42 2010
New Revision: 113863
URL: http://llvm.org/viewvc/llvm-project?rev=113863&view=rev
Log:
Tweak this assert.
Modified:
cfe/trunk/lib/CodeGen/CGExprCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprCXX.cpp?rev=113863&r1=113862&r2=113863&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprCXX.cpp Tue Sep 14 16:45:42 2010
@@ -709,7 +709,7 @@
const FunctionProtoType *FPT
= OperatorDelete->getType()->getAs<FunctionProtoType>();
assert(FPT->getNumArgs() == NumPlacementArgs + 1 ||
- FPT->getNumArgs() == NumPlacementArgs + 2);
+ (FPT->getNumArgs() == 2 && NumPlacementArgs == 0));
CallArgList DeleteArgs;
More information about the cfe-commits
mailing list