Skip to content

Commit

Permalink
[NFC] Fix uninitalized member variable use in ASTReader::ParseTargetO…
Browse files Browse the repository at this point in the history
…ptions()
  • Loading branch information
schittir committed Mar 29, 2023
1 parent 38e4656 commit 6f2a865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/Basic/TargetOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class TargetOptions {
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;
Expand Down Expand Up @@ -88,7 +88,7 @@ class TargetOptions {
COV_5 = 500,
};
/// \brief Code object version for AMDGPU.
CodeObjectVersionKind CodeObjectVersion;
CodeObjectVersionKind CodeObjectVersion = CodeObjectVersionKind::COV_None;

// The code model to be used as specified by the user. Corresponds to
// CodeModel::Model enum defined in include/llvm/Support/CodeGen.h, plus
Expand Down

0 comments on commit 6f2a865

Please sign in to comment.