[llvm] 4533e6a - [AsmParser] Use default member initialization (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 18 07:46:08 PDT 2022
Author: Kazu Hirata
Date: 2022-06-18T07:46:03-07:00
New Revision: 4533e6aab8bfe73552a6aab12b5fd21cb679fa03
URL: https://github.com/llvm/llvm-project/commit/4533e6aab8bfe73552a6aab12b5fd21cb679fa03
DIFF: https://github.com/llvm/llvm-project/commit/4533e6aab8bfe73552a6aab12b5fd21cb679fa03.diff
LOG: [AsmParser] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
Added:
Modified:
llvm/lib/AsmParser/LLParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 29ef40a59d145..e5ee36f2fe5f3 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -4009,11 +4009,11 @@ struct MDAPSIntField : public MDFieldImpl<APSInt> {
};
struct MDSignedField : public MDFieldImpl<int64_t> {
- int64_t Min;
- int64_t Max;
+ int64_t Min = INT64_MIN;
+ int64_t Max = INT64_MAX;
MDSignedField(int64_t Default = 0)
- : ImplTy(Default), Min(INT64_MIN), Max(INT64_MAX) {}
+ : ImplTy(Default) {}
MDSignedField(int64_t Default, int64_t Min, int64_t Max)
: ImplTy(Default), Min(Min), Max(Max) {}
};
More information about the llvm-commits
mailing list