From b059ea3262f2d1704b9807bac8bb997131c5dccf Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 8 May 2019 07:45:17 -0700 Subject: [PATCH] Adapt llvm rL360179: Option may have multiple OptionCategory's --- src/main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cc b/src/main.cc index ece5dc6e..e8f66304 100644 --- a/src/main.cc +++ b/src/main.cc @@ -77,7 +77,11 @@ int main(int argc, char **argv) { }); for (auto &I : TopLevelSubCommand->OptionsMap) +#if LLVM_VERSION_MAJOR >= 9 // rL360179 + if (I.second->Categories[0] != &C) +#else if (I.second->Category != &C) +#endif I.second->setHiddenFlag(ReallyHidden); ParseCommandLineOptions(argc, argv,