1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[llvm-objcopy] Fix a warningon unused variable. NFC.

llvm-svn: 372745
This commit is contained in:
Michael Liao 2019-09-24 12:43:44 +00:00
parent 38c6f227ec
commit 8fb25cd687

View File

@ -386,7 +386,7 @@ Expected<DriverConfig> parseObjcopyOptions(ArrayRef<const char *> ArgsArr) {
.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);