Addressed review comments to use ThreadSafe instead of !ThreadSafe

This commit is contained in:
kstoimenov 2023-09-19 11:05:42 -07:00 committed by GitHub
parent fc95de38d9
commit c133fe141f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;