Skip to content

Commit

Permalink
Silencing some 'logical operation on address of string constant diagn…
Browse files Browse the repository at this point in the history
…ostics; NFC
  • Loading branch information
AaronBallman committed Jul 19, 2020
1 parent 50afa18 commit 7dfff42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/CompileCommands.cpp
Expand Up @@ -354,7 +354,7 @@ llvm::ArrayRef<ArgStripper::Rule> ArgStripper::rulesFor(llvm::StringRef Arg) {
#define PREFIX(NAME, VALUE) static const char *const NAME[] = VALUE;
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
HELP, METAVAR, VALUES) \
if (DriverID::OPT_##ALIAS != DriverID::OPT_INVALID && ALIASARGS == nullptr) \
if (DriverID::OPT_##ALIAS != DriverID::OPT_INVALID && !ALIASARGS) \
AddAlias(DriverID::OPT_##ID, DriverID::OPT_##ALIAS); \
Prefixes[DriverID::OPT_##ID] = PREFIX;
#include "clang/Driver/Options.inc"
Expand Down

0 comments on commit 7dfff42

Please sign in to comment.