diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-18 03:42:04 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-18 03:42:04 +0000 |
commit | 44b0a3e858af7b19f489619e52cd58970611cd15 (patch) | |
tree | eb582f93b5065d966cb9d7bc2949694463a59e99 | |
parent | e4216e9d76635279fed9d5ee796872d9b8e5dc1e (diff) |
Add an assertion to catch bad calls to EmitCallArgs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89190 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index afb1ecdfe3..d96c355101 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1097,6 +1097,7 @@ private: 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()). |