aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 7dedcc24a5..ac92984c0b 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -3655,8 +3655,7 @@ void darwin::Compile::ConstructJob(Compilation &C, const JobAction &JA,
Args.ClaimAllArgs(options::OPT__serialize_diags);
types::ID InputType = Inputs[0].getType();
- const Arg *A;
- if ((A = Args.getLastArg(options::OPT_traditional)))
+ if (const Arg *A = Args.getLastArg(options::OPT_traditional))
D.Diag(diag::err_drv_argument_only_allowed_with)
<< A->getAsString(Args) << "-E";