summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-11-18 03:42:04 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-11-18 03:42:04 +0000
commit794290ca29a022208ade1749b1e65e4be2edc8eb (patch)
treecb0890bef01ec1a5c02cdbd26c5976647297036c /clang/lib/CodeGen/CodeGenFunction.h
parentcfdd40c807db0ad01df2b092420b26753c000d7c (diff)
downloadbcm5719-llvm-794290ca29a022208ade1749b1e65e4be2edc8eb.tar.gz
bcm5719-llvm-794290ca29a022208ade1749b1e65e4be2edc8eb.zip
Add an assertion to catch bad calls to EmitCallArgs.
llvm-svn: 89190
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index afb1ecdfe39..d96c3551010 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/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()).
OpenPOWER on IntegriCloud