Skip to content

Commit f372a9f

Browse files
committed
[X86AsmParser] Refactor AsmRewrite constructors, NFCI
Summary: This is a follow-up of https://reviews.llvm.org/D37105, where a slight refactoring of the constructors of AsmRewrite is proposed. Reviewers: coby Reviewed By: coby Differential Revision: https://reviews.llvm.org/D37110 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311666 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 616b6cc commit f372a9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/llvm/MC/MCParser/MCTargetAsmParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ struct AsmRewrite {
113113
AsmRewrite(AsmRewriteKind kind, SMLoc loc, unsigned len = 0, int64_t val = 0)
114114
: Kind(kind), Loc(loc), Len(len), Val(val) {}
115115
AsmRewrite(AsmRewriteKind kind, SMLoc loc, unsigned len, StringRef label)
116-
: Kind(kind), Loc(loc), Len(len), Val(0), Label(label) {}
116+
: AsmRewrite(kind, loc, len) { Label = label; }
117117
AsmRewrite(SMLoc loc, unsigned len, IntelExpr exp)
118-
: Kind(AOK_IntelExpr), Loc(loc), Len(len), Val(0), IntelExp(exp) {}
118+
: AsmRewrite(AOK_IntelExpr, loc, len) { IntelExp = exp; }
119119
};
120120

121121
struct ParseInstructionInfo {

0 commit comments

Comments
 (0)