[llvm] 1ad01f4 - [AArch64] Use default member initialization (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 12 18:52:07 PDT 2022
Author: Kazu Hirata
Date: 2022-06-12T18:52:02-07:00
New Revision: 1ad01f4f7cded4734147dc5afd6a78b73d04fec1
URL: https://github.com/llvm/llvm-project/commit/1ad01f4f7cded4734147dc5afd6a78b73d04fec1
DIFF: https://github.com/llvm/llvm-project/commit/1ad01f4f7cded4734147dc5afd6a78b73d04fec1.diff
LOG: [AArch64] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
Added:
Modified:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index a64e0a8035331..e9cea25f63a2d 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -127,7 +127,7 @@ class AArch64AsmParser : public MCTargetAsmParser {
return Prefix;
}
- PrefixInfo() : Active(false), Predicated(false) {}
+ PrefixInfo() = default;
bool isActive() const { return Active; }
bool isPredicated() const { return Predicated; }
unsigned getElementSize() const {
@@ -141,8 +141,8 @@ class AArch64AsmParser : public MCTargetAsmParser {
}
private:
- bool Active;
- bool Predicated;
+ bool Active = false;
+ bool Predicated = false;
unsigned ElementSize;
unsigned Dst;
unsigned Pg;
More information about the llvm-commits
mailing list