Skip to content

Commit c877b1d

Browse files
Merge pull request #1499 from apple/ematejska-patch-2
[swift/master-next] Wrapping reference to SwiftASTContext with #ifndef NDEBUG
2 parents c771eb3 + 0e8c865 commit c877b1d

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)