[PATCH] D127630: [MC] Fix likely uninitialized memory bug

Jez Ng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 04:05:03 PDT 2022


int3 created this revision.
int3 added reviewers: lld-macho, uabelho.
Herald added a project: All.
int3 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127630

Files:
  clang/tools/driver/cc1as_main.cpp


Index: clang/tools/driver/cc1as_main.cpp
===================================================================
--- clang/tools/driver/cc1as_main.cpp
+++ clang/tools/driver/cc1as_main.cpp
@@ -170,6 +170,7 @@
     Dwarf64 = 0;
     DwarfVersion = 0;
     EmbedBitcode = 0;
+    EmitDwarfUnwind = EmitDwarfUnwindType::Default;
   }
 
   static bool CreateFromArgs(AssemblerInvocation &Res,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127630.436336.patch
Type: text/x-patch
Size: 385 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220613/e960717e/attachment.bin>


More information about the cfe-commits mailing list