Skip to content

Commit

Permalink
[RISCV] Remove unused private field 'HasFRMRoundModeOp' in RVVIntrins…
Browse files Browse the repository at this point in the history
…ic (NFC)

/data/llvm-project/clang/include/clang/Support/RISCVVIntrinsicUtils.h:390:8: error: private field 'HasFRMRoundModeOp' is not used [-Werror,-Wunused-private-field]
  bool HasFRMRoundModeOp;
       ^
1 error generated.
  • Loading branch information
DamonFool committed Jul 13, 2023
1 parent 0a69707 commit 405889e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion clang/include/clang/Support/RISCVVIntrinsicUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ class RVVIntrinsic {
std::vector<int64_t> IntrinsicTypes;
unsigned NF = 1;
Policy PolicyAttrs;
bool HasFRMRoundModeOp;

public:
RVVIntrinsic(llvm::StringRef Name, llvm::StringRef Suffix,
Expand Down
3 changes: 1 addition & 2 deletions clang/lib/Support/RISCVVIntrinsicUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,7 @@ RVVIntrinsic::RVVIntrinsic(
: IRName(IRName), IsMasked(IsMasked),
HasMaskedOffOperand(HasMaskedOffOperand), HasVL(HasVL), Scheme(Scheme),
SupportOverloading(SupportOverloading), HasBuiltinAlias(HasBuiltinAlias),
ManualCodegen(ManualCodegen.str()), NF(NF), PolicyAttrs(NewPolicyAttrs),
HasFRMRoundModeOp(HasFRMRoundModeOp) {
ManualCodegen(ManualCodegen.str()), NF(NF), PolicyAttrs(NewPolicyAttrs) {

// Init BuiltinName, Name and OverloadedName
BuiltinName = NewName.str();
Expand Down

0 comments on commit 405889e

Please sign in to comment.