[clang] c4afc65 - Fix compilation warning. NFC.
Michael Liao via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 09:07:33 PST 2019
Author: Michael Liao
Date: 2019-11-21T12:07:13-05:00
New Revision: c4afc6566a64e6be3f77271781a147bb5ff98b0c
URL: https://github.com/llvm/llvm-project/commit/c4afc6566a64e6be3f77271781a147bb5ff98b0c
DIFF: https://github.com/llvm/llvm-project/commit/c4afc6566a64e6be3f77271781a147bb5ff98b0c.diff
LOG: Fix compilation warning. NFC.
Added:
Modified:
clang/lib/Driver/Driver.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 90f3cea5b2af..c1173e3ddbf0 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -3498,7 +3498,7 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args,
Actions.push_back(
C.MakeAction<IfsMergeJobAction>(MergerInputs, types::TY_Image));
- if (Arg *A = Args.getLastArg(options::OPT_emit_interface_stubs)) {
+ if (Args.hasArg(options::OPT_emit_interface_stubs)) {
llvm::SmallVector<phases::ID, phases::MaxNumberOfPhases> PhaseList;
if (Args.hasArg(options::OPT_c)) {
llvm::SmallVector<phases::ID, phases::MaxNumberOfPhases> CompilePhaseList;
More information about the cfe-commits
mailing list