diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index a45ed0e56553..1e1ab814673f 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -735,9 +735,9 @@ DWARFContext::DWARFContext(std::unique_ptr DObj, RecoverableErrorHandler(RecoverableErrorHandler), WarningHandler(WarningHandler), DObj(std::move(DObj)) { if (ThreadSafe) - State.reset(new ThreadUnsafeDWARFContextState(*this, DWPName)); - else State.reset(new ThreadSafeState(*this, DWPName)); + else + State.reset(new ThreadUnsafeDWARFContextState(*this, DWPName)); } DWARFContext::~DWARFContext() = default;