X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FSupport%2FCommandLine.cpp;h=0351d285bca4e78a9e38534f5c3b4570928472f6;hp=ba2cd02622a554d7d26c81494d60279696ffb2b7;hb=0213b090b87629f88fca9eff4d80b9a2ee2c7266;hpb=8c6097d490256cd3a89b185feb401c63ff5805d1 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");