[llvm] 8514082 - [MC] Modernize InlineAsmIdentifier (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 3 23:37:10 PDT 2023
Author: Kazu Hirata
Date: 2023-06-03T23:36:54-07:00
New Revision: 8514082f54038906cc924a2e35588163b929f034
URL: https://github.com/llvm/llvm-project/commit/8514082f54038906cc924a2e35588163b929f034
DIFF: https://github.com/llvm/llvm-project/commit/8514082f54038906cc924a2e35588163b929f034.diff
LOG: [MC] Modernize InlineAsmIdentifier (NFC)
Added:
Modified:
llvm/include/llvm/MC/MCParser/MCAsmParser.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/MC/MCParser/MCAsmParser.h b/llvm/include/llvm/MC/MCParser/MCAsmParser.h
index da0f384426667..faa72d5f3144c 100644
--- a/llvm/include/llvm/MC/MCParser/MCAsmParser.h
+++ b/llvm/include/llvm/MC/MCParser/MCAsmParser.h
@@ -83,11 +83,11 @@ struct InlineAsmIdentifierInfo {
Var.Type = type;
Var.Length = size / type;
}
- InlineAsmIdentifierInfo() : Kind(IK_Invalid) {}
+ InlineAsmIdentifierInfo() = default;
private:
// Discriminate using the current kind.
- IdKind Kind;
+ IdKind Kind = IK_Invalid;
};
// Generic type information for an assembly object.
More information about the llvm-commits
mailing list