Skip to content

Commit f5a03f5

Browse files
committed
ASTScope: Fix linker error when building without asserts
1 parent 35d765f commit f5a03f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/AST/UnqualifiedLookup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,8 @@ unsigned UnqualifiedLookupFactory::lookupCounter = 0;
778778
// set to ~0 when not debugging
779779
const unsigned UnqualifiedLookupFactory::targetLookup = ~0;
780780

781+
#endif // NDEBUG
782+
781783
namespace {
782784

783785
class ASTScopeDeclConsumerForLocalLookup
@@ -831,6 +833,4 @@ ValueDecl *ASTScope::lookupSingleLocalDecl(SourceFile *sf, DeclName name,
831833
if (result.size() != 1)
832834
return nullptr;
833835
return result[0];
834-
}
835-
836-
#endif // NDEBUG
836+
}

0 commit comments

Comments
 (0)