[llvm] c133fe1 - Addressed review comments to use ThreadSafe instead of !ThreadSafe

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 11:05:45 PDT 2023


Author: kstoimenov
Date: 2023-09-19T11:05:42-07:00
New Revision: c133fe141fc674a592d0032c3eb3cf9d32998908

URL: https://github.com/llvm/llvm-project/commit/c133fe141fc674a592d0032c3eb3cf9d32998908
DIFF: https://github.com/llvm/llvm-project/commit/c133fe141fc674a592d0032c3eb3cf9d32998908.diff

LOG: Addressed review comments to use ThreadSafe instead of !ThreadSafe

Added: 
    

Modified: 
    llvm/lib/DebugInfo/DWARF/DWARFContext.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index a45ed0e56553d4e..1e1ab814673f423 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -735,9 +735,9 @@ DWARFContext::DWARFContext(std::unique_ptr<const DWARFObject> 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;


        


More information about the llvm-commits mailing list