[clang] e4a21e1 - [MC] Fix likely uninitialized memory bug
Jez Ng via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 04:41:48 PDT 2022
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,
More information about the cfe-commits
mailing list