[llvm] 9b8ed1e - [NFC]add initialization for EmitCompactUnwindNonCanonical in ctor
Vy Nguyen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 12:09:51 PDT 2023
Author: Chen, Cheng2
Date: 2023-07-11T15:09:33-04:00
New Revision: 9b8ed1eedce1ed1ebb8d6e7b1acb8c6a75c53f62
URL: https://github.com/llvm/llvm-project/commit/9b8ed1eedce1ed1ebb8d6e7b1acb8c6a75c53f62
DIFF: https://github.com/llvm/llvm-project/commit/9b8ed1eedce1ed1ebb8d6e7b1acb8c6a75c53f62.diff
LOG: [NFC]add initialization for EmitCompactUnwindNonCanonical in ctor
I found that the newly added member variables, "EmitCompactUnwindNonCanonical" were not initialized in the constructor, but other member variables were initialized. The behavior seems to need to be consistent to improve code.
Reviewed By: oontvoo
Differential Revision: https://reviews.llvm.org/D154472
Added:
Modified:
llvm/lib/MC/MCTargetOptions.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCTargetOptions.cpp b/llvm/lib/MC/MCTargetOptions.cpp
index c2946da3ee66f8..8fea8c7715bdc8 100644
--- a/llvm/lib/MC/MCTargetOptions.cpp
+++ b/llvm/lib/MC/MCTargetOptions.cpp
@@ -18,7 +18,8 @@ MCTargetOptions::MCTargetOptions()
ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false),
PreserveAsmComments(true), Dwarf64(false),
EmitDwarfUnwind(EmitDwarfUnwindType::Default),
- MCUseDwarfDirectory(DefaultDwarfDirectory) {}
+ MCUseDwarfDirectory(DefaultDwarfDirectory),
+ EmitCompactUnwindNonCanonical(false) {}
StringRef MCTargetOptions::getABIName() const {
return ABIName;
More information about the llvm-commits
mailing list