Fixing broken bots.
authorChris Bieneman <beanz@apple.com>
Fri, 13 Feb 2015 23:10:31 +0000 (23:10 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 13 Feb 2015 23:10:31 +0000 (23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229176 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/CommandLine.cpp

index ba2cd02622a554d7d26c81494d60279696ffb2b7..0351d285bca4e78a9e38534f5c3b4570928472f6 100644 (file)
@@ -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");