forked from OSchip/llvm-project
Fix an unused variable warning where a variable was only used in an assert.
This commit is contained in:
parent
90b8bc003c
commit
e807569258
|
@ -457,8 +457,10 @@ std::string getQualification(ASTContext &Context,
|
|||
const DeclContext *DestContext,
|
||||
SourceLocation InsertionPoint, const NamedDecl *ND,
|
||||
llvm::ArrayRef<std::string> VisibleNamespaces) {
|
||||
for (llvm::StringRef NS : VisibleNamespaces)
|
||||
for (llvm::StringRef NS : VisibleNamespaces) {
|
||||
assert(NS.endswith("::"));
|
||||
(void)NS;
|
||||
}
|
||||
return getQualification(
|
||||
Context, DestContext, ND->getDeclContext(),
|
||||
[&](NestedNameSpecifier *NNS) {
|
||||
|
|
Loading…
Reference in New Issue