Skip to content

Commit 1999a14

Browse files
author
ematejska
authored
Wrapping reference to SwiftASTContext with #ifndef NDEBUG
Wrapping reference to SwiftASTContext with #ifndef NDEBUG/#endif because it was only defined in that case per: 5fa7d8e. Without this, running the full lldb testsuite seems to fail on this test.
1 parent 42c40c5 commit 1999a14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/unittests/Symbol/TestSwiftASTContext.cpp

Lines changed: 2 additions & 0 deletions
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+
#ifndef NDEBUG
6465
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)