projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
621f58e
)
[AsmParser] Use default member initialization (NFC)
author
Kazu Hirata
<kazu@google.com>
Sat, 18 Jun 2022 14:46:03 +0000
(07:46 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sat, 18 Jun 2022 14:46:03 +0000
(07:46 -0700)
Identified with modernize-use-default-member-init.
llvm/lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/AsmParser/LLParser.cpp
b/llvm/lib/AsmParser/LLParser.cpp
index
29ef40a
..
e5ee36f
100644
(file)
--- 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) {}
};