Skip to content

Commit 0e8c865

Browse files
author
ematejska
authored
[swift/master-next] Wrapping reference to SwiftASTContext with #ifndef NDEBUG
Merging #1490 to swift/master-next as requested.
1 parent f553d90 commit 0e8c865

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/unittests/Symbol/TestSwiftASTContext.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ struct TestSwiftASTContext : public testing::Test {
6161
};
6262

6363
struct SwiftASTContextTester : public SwiftASTContext {
64-
SwiftASTContextTester() : SwiftASTContext() {}
64+
#ifndef NDEBUG
65+
SwiftASTContextTester() : SwiftASTContext() {}
66+
#endif
6567

6668
static std::string GetResourceDir(llvm::StringRef platform_sdk_path,
6769
std::string swift_dir,

0 commit comments

Comments
 (0)