diff --git a/lldb/source/Target/InstrumentationRuntime.cpp b/lldb/source/Target/InstrumentationRuntime.cpp index 94f4ca353d7efa..9da06e8e155af7 100644 --- a/lldb/source/Target/InstrumentationRuntime.cpp +++ b/lldb/source/Target/InstrumentationRuntime.cpp @@ -60,7 +60,7 @@ void InstrumentationRuntime::ModulesDidLoad( if (CheckIfRuntimeIsValid(module_sp)) { SetRuntimeModuleSP(module_sp); Activate(); - if (IsActive()) + if (!IsActive()) SetRuntimeModuleSP({}); // Don't cache module if activation failed. return false; // Stop iterating, we're done. }