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/Driver/Tools.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/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 5ac2268ee3e..7c987191d80 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -2832,6 +2832,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back(A->getValue()); } + if (Arg *A = Args.getLastArg(options::OPT_foperator_arrow_depth_EQ)) { + CmdArgs.push_back("-foperator-arrow-depth"); + CmdArgs.push_back(A->getValue()); + } + if (Arg *A = Args.getLastArg(options::OPT_fconstexpr_depth_EQ)) { CmdArgs.push_back("-fconstexpr-depth"); CmdArgs.push_back(A->getValue()); |

