[llvm] r372745 - [llvm-objcopy] Fix a warningon unused variable. NFC.
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 05:43:44 PDT 2019
Author: hliao
Date: Tue Sep 24 05:43:44 2019
New Revision: 372745
URL: http://llvm.org/viewvc/llvm-project?rev=372745&view=rev
Log:
[llvm-objcopy] Fix a warningon unused variable. NFC.
Modified:
llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp
Modified: llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp?rev=372745&r1=372744&r2=372745&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp (original)
+++ llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp Tue Sep 24 05:43:44 2019
@@ -386,7 +386,7 @@ Expected<DriverConfig> parseObjcopyOptio
.Case("ihex", FileFormat::IHex)
.Default(FileFormat::Unspecified);
- if (opt::Arg *A = InputArgs.getLastArg(OBJCOPY_new_symbol_visibility))
+ if (InputArgs.hasArg(OBJCOPY_new_symbol_visibility))
Config.NewSymbolVisibility =
InputArgs.getLastArgValue(OBJCOPY_new_symbol_visibility);
More information about the llvm-commits
mailing list