[llvm] 55d8f0c - [lipo] Initialized variable after #67737
    Vitaly Buka via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Oct  2 14:03:26 PDT 2023
    
    
  
Author: Vitaly Buka
Date: 2023-10-02T14:03:09-07:00
New Revision: 55d8f0cd31311ed3ebc85bef2c9b5cfca1579076
URL: https://github.com/llvm/llvm-project/commit/55d8f0cd31311ed3ebc85bef2c9b5cfca1579076
DIFF: https://github.com/llvm/llvm-project/commit/55d8f0cd31311ed3ebc85bef2c9b5cfca1579076.diff
LOG: [lipo] Initialized variable after #67737
Added: 
    
Modified: 
    llvm/lib/Object/MachOUniversalWriter.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/lib/Object/MachOUniversalWriter.cpp b/llvm/lib/Object/MachOUniversalWriter.cpp
index 997235f0b74167a..820560437708279 100644
--- a/llvm/lib/Object/MachOUniversalWriter.cpp
+++ b/llvm/lib/Object/MachOUniversalWriter.cpp
@@ -281,7 +281,7 @@ buildFatArchList(ArrayRef<Slice> Slices) {
               .str()
               .c_str());
 
-    FatArchTy FatArch;
+    FatArchTy FatArch = {};
     FatArch.cputype = S.getCPUType();
     FatArch.cpusubtype = S.getCPUSubType();
     FatArch.offset = Offset;
        
    
    
More information about the llvm-commits
mailing list