[cfe-commits] r89190 - /cfe/trunk/lib/CodeGen/CodeGenFunction.h

Eli Friedman eli.friedman at gmail.com
Tue Nov 17 19:42:05 PST 2009


Author: efriedma
Date: Tue Nov 17 21:42:04 2009
New Revision: 89190

URL: http://llvm.org/viewvc/llvm-project?rev=89190&view=rev
Log:
Add an assertion to catch bad calls to EmitCallArgs.


Modified:
    cfe/trunk/lib/CodeGen/CodeGenFunction.h

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.h?rev=89190&r1=89189&r2=89190&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.h Tue Nov 17 21:42:04 2009
@@ -1097,6 +1097,7 @@
     if (CallArgTypeInfo) {
       for (typename T::arg_type_iterator I = CallArgTypeInfo->arg_type_begin(),
            E = CallArgTypeInfo->arg_type_end(); I != E; ++I, ++Arg) {
+        assert(Arg != ArgEnd && "Running over edge of argument list!");
         QualType ArgType = *I;
 
         assert(getContext().getCanonicalType(ArgType.getNonReferenceType()).





More information about the cfe-commits mailing list