diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index ba2cd02622a..0351d285bca 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -198,7 +198,7 @@ public: assert(std::count_if(RegisteredOptionCategories.begin(), RegisteredOptionCategories.end(), [cat](const OptionCategory *Category) { - return getName() == Category->getName(); + return cat->getName() == Category->getName(); }) == 0 && "Duplicate option categories");