r261626 - Fix a -Wunused-variable diagnostic.
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 23 02:29:05 PST 2016
Author: alexfh
Date: Tue Feb 23 04:29:04 2016
New Revision: 261626
URL: http://llvm.org/viewvc/llvm-project?rev=261626&view=rev
Log:
Fix a -Wunused-variable diagnostic.
Modified:
cfe/trunk/lib/ASTMatchers/ASTMatchersInternal.cpp
Modified: cfe/trunk/lib/ASTMatchers/ASTMatchersInternal.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ASTMatchers/ASTMatchersInternal.cpp?rev=261626&r1=261625&r2=261626&view=diff
==============================================================================
--- cfe/trunk/lib/ASTMatchers/ASTMatchersInternal.cpp (original)
+++ cfe/trunk/lib/ASTMatchers/ASTMatchersInternal.cpp Tue Feb 23 04:29:04 2016
@@ -307,8 +307,10 @@ HasNameMatcher::HasNameMatcher(std::vect
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 {
More information about the cfe-commits
mailing list