We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d6673 commit 39c9340Copy full SHA for 39c9340
lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp
@@ -2341,7 +2341,12 @@ void SwiftLanguageRuntime::Terminate() {
2341
2342
ThreadSafeReflectionContext
2343
SwiftLanguageRuntime::GetReflectionContext() {
2344
- FORWARD(GetReflectionContext);
+ // Hand written because the ternary operator prevents RVO when compiling with
2345
+ // MSVC.
2346
+ assert(m_impl || m_stub);
2347
+ if (m_impl)
2348
+ return m_impl->GetReflectionContext();
2349
+ return m_stub->GetReflectionContext();
2350
}
2351
2352
bool SwiftLanguageRuntime::GetDynamicTypeAndAddress(
0 commit comments