]> granicus.if.org Git - clang/commitdiff
Fix a -Wunused-variable diagnostic.
authorAlexander Kornienko <alexfh@google.com>
Tue, 23 Feb 2016 10:29:04 +0000 (10:29 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 23 Feb 2016 10:29:04 +0000 (10:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261626 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ASTMatchers/ASTMatchersInternal.cpp

index ed48d7718a215ac3651ea41ee97b6f4aa6b56d64..107052ef1dedf1f742f1fac3abcac013a07dd574 100644 (file)
@@ -307,8 +307,10 @@ HasNameMatcher::HasNameMatcher(std::vector<std::string> N)
           N.begin(), N.end(),
           [](StringRef Name) { return Name.find("::") == Name.npos; })),
       Names(std::move(N)) {
+#ifndef NDEBUG
   for (StringRef Name : Names)
     assert(!Name.empty());
+#endif
 }
 
 namespace {