Add a limit to the length of a sequence of 'operator->' functions we will

follow when building a class member access expression. Based on a patch by
Rahul Jain!

llvm-svn: 194161
This commit is contained in:
Richard Smith
2013-11-06 19:31:51 +00:00
parent 41b99dce59
commit 79c927bfe9
9 changed files with 96 additions and 7 deletions

View File

@@ -1322,6 +1322,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Opts.MathErrno = !Opts.OpenCL && Args.hasArg(OPT_fmath_errno);
Opts.InstantiationDepth =
getLastArgIntValue(Args, OPT_ftemplate_depth, 256, Diags);
Opts.ArrowDepth =
getLastArgIntValue(Args, OPT_foperator_arrow_depth, 256, Diags);
Opts.ConstexprCallDepth =
getLastArgIntValue(Args, OPT_fconstexpr_depth, 512, Diags);
Opts.ConstexprStepLimit =