diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-04-04 20:43:14 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-04-04 20:43:14 +0000 |
commit | d624a5b43a970bd3102d7075baeea89b8ca336a4 (patch) | |
tree | 5d86b9332e005f3269a1e929b997826b3cea0fc1 /lib/Driver/Tools.cpp | |
parent | 7a938fa66be42710b034a79106de337a275fd265 (diff) |
Reduce variable scope.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 3 |
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"; |