[PATCH] D146604: [NFC] Fix uninitalized member variable use in ASTReader::ParseTargetOptions()
Sindhu Chittireddy via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 22 10:33:04 PDT 2023
schittir updated this revision to Diff 507425.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146604/new/
https://reviews.llvm.org/D146604
Files:
clang/include/clang/Basic/TargetOptions.h
Index: clang/include/clang/Basic/TargetOptions.h
===================================================================
--- clang/include/clang/Basic/TargetOptions.h
+++ clang/include/clang/Basic/TargetOptions.h
@@ -45,7 +45,7 @@
std::string ABI;
/// The EABI version to use
- llvm::EABI EABIVersion;
+ llvm::EABI EABIVersion = llvm::EABI::Default;
/// If given, the version string of the linker in use.
std::string LinkerVersion;
@@ -88,7 +88,7 @@
COV_5 = 500,
};
/// \brief Code object version for AMDGPU.
- CodeObjectVersionKind CodeObjectVersion;
+ CodeObjectVersionKind CodeObjectVersion = CodeObjectVersionKind::COV_4;
// The code model to be used as specified by the user. Corresponds to
// CodeModel::Model enum defined in include/llvm/Support/CodeGen.h, plus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146604.507425.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230322/9383ced6/attachment.bin>
More information about the cfe-commits
mailing list