[llvm] 7405bb8 - Apply clang-tidy fixes for readability-redundant-smartptr-get in MachOUniversalWriter.cpp (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 09:19:25 PDT 2022
Author: Kazu Hirata
Date: 2022-03-28T09:18:35-07:00
New Revision: 7405bb82d37eeac1cd77722767bb14ae56cee2a6
URL: https://github.com/llvm/llvm-project/commit/7405bb82d37eeac1cd77722767bb14ae56cee2a6
DIFF: https://github.com/llvm/llvm-project/commit/7405bb82d37eeac1cd77722767bb14ae56cee2a6.diff
LOG: Apply clang-tidy fixes for readability-redundant-smartptr-get in MachOUniversalWriter.cpp (NFC)
Added:
Modified:
llvm/lib/Object/MachOUniversalWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Object/MachOUniversalWriter.cpp b/llvm/lib/Object/MachOUniversalWriter.cpp
index 02a13b68048cc..333706baf8c1c 100644
--- a/llvm/lib/Object/MachOUniversalWriter.cpp
+++ b/llvm/lib/Object/MachOUniversalWriter.cpp
@@ -213,7 +213,7 @@ Expected<Slice> Slice::create(const Archive &A, LLVMContext *LLVMCtx) {
.c_str());
if (MFO) {
- Slice ArchiveSlice(*(MFO.get()), MFO->is64Bit() ? 3 : 2);
+ Slice ArchiveSlice(*(MFO), MFO->is64Bit() ? 3 : 2);
ArchiveSlice.B = &A;
return ArchiveSlice;
}
More information about the llvm-commits
mailing list