diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-04-08 21:13:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-04-08 21:13:13 +0000 |
commit | 0ad5e2aa35755e7538c72198c07274deb7d89e19 (patch) | |
tree | bd3fb8388f63990792ebada7cbd75bdc9aa6eb44 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e373235c7cf8e32dd9fff2dfb9d0e8bd6ee26835 (diff) | |
download | llvm-0ad5e2aa35755e7538c72198c07274deb7d89e19.zip llvm-0ad5e2aa35755e7538c72198c07274deb7d89e19.tar.gz llvm-0ad5e2aa35755e7538c72198c07274deb7d89e19.tar.bz2 |
<rdar://problem/13559825> Further reduce template instantiation depth down to 256, since we're blowing the stack for a trivial "factorial" class template.
llvm-svn: 179057
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 41f9417..324b6e3 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1244,7 +1244,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.AccessControl = !Args.hasArg(OPT_fno_access_control); Opts.ElideConstructors = !Args.hasArg(OPT_fno_elide_constructors); Opts.MathErrno = Args.hasArg(OPT_fmath_errno); - Opts.InstantiationDepth = Args.getLastArgIntValue(OPT_ftemplate_depth, 512, + Opts.InstantiationDepth = Args.getLastArgIntValue(OPT_ftemplate_depth, 256, Diags); Opts.ConstexprCallDepth = Args.getLastArgIntValue(OPT_fconstexpr_depth, 512, Diags); |