Author: Jez Ng
Date: 2022-06-13T07:41:17-04:00
New Revision: e4a21e1644f2015dd4f9c3a7c67378879aa912cc

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

LOG: [MC] Fix likely uninitialized memory bug

See https://reviews.llvm.org/D122258#inline-1223493. I can't repro the
issue locally but this seems like the likely culprit.

Reviewed By: uabelho

Differential Revision: https://reviews.llvm.org/D127630

Added: 
    

Modified: 
    clang/tools/driver/cc1as_main.cpp

Removed: 
    


################################################################################
diff  --git a/clang/tools/driver/cc1as_main.cpp 
b/clang/tools/driver/cc1as_main.cpp
index 264f747d6d740..5498810d835cd 100644
--- a/clang/tools/driver/cc1as_main.cpp
+++ b/clang/tools/driver/cc1as_main.cpp
@@ -170,6 +170,7 @@ struct AssemblerInvocation {
     Dwarf64 = 0;
     DwarfVersion = 0;
     EmbedBitcode = 0;
+    EmitDwarfUnwind = EmitDwarfUnwindType::Default;
   }
 
   static bool CreateFromArgs(AssemblerInvocation &Res,


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to