diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-06 19:31:51 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-06 19:31:51 +0000 |
commit | 79c927bfe9fc9d2a3972e9f906bce30b96e2e852 (patch) | |
tree | 2a01e156111a7609836018c851b05bfd83b96386 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 41b99dce592ab3150a11ed84e0328bf3b3b78ae7 (diff) | |
download | bcm5719-llvm-79c927bfe9fc9d2a3972e9f906bce30b96e2e852.tar.gz bcm5719-llvm-79c927bfe9fc9d2a3972e9f906bce30b96e2e852.zip |
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index d419d8a9eaf..c1999e84c44 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -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 = |