Fix a -Wunused-variable diagnostic.

llvm-svn: 261626
This commit is contained in:
Alexander Kornienko 2016-02-23 10:29:04 +00:00
parent c1694c6ab7
commit 1eeac19226
1 changed files with 2 additions and 0 deletions

View 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 {