Skip to content

Commit 7ff0d28

Browse files
authored
Triple: Remove redundant member initializers (#145661)
These are already initialized in the field definitions.
1 parent 7fcd2ca commit 7ff0d28

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/TargetParser/Triple.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,10 +1018,7 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
10181018
///
10191019
/// This stores the string representation and parses the various pieces into
10201020
/// enum members.
1021-
Triple::Triple(const Twine &Str)
1022-
: Data(Str.str()), Arch(UnknownArch), SubArch(NoSubArch),
1023-
Vendor(UnknownVendor), OS(UnknownOS), Environment(UnknownEnvironment),
1024-
ObjectFormat(UnknownObjectFormat) {
1021+
Triple::Triple(const Twine &Str) : Data(Str.str()) {
10251022
// Do minimal parsing by hand here.
10261023
SmallVector<StringRef, 4> Components;
10271024
StringRef(Data).split(Components, '-', /*MaxSplit*/ 3);

0 commit comments

Comments
 (0)