Skip to content

Commit 5597d97

Browse files
authored
[clang] MveEmitter: Pass Args as a const reference (#89551)
Closes #89192.
1 parent 2e7bd22 commit 5597d97

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

clang/utils/TableGen/MveEmitter.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,9 @@ class IRBuilderResult : public Result {
658658
std::vector<Ptr> Args;
659659
std::set<unsigned> AddressArgs;
660660
std::map<unsigned, std::string> IntegerArgs;
661-
IRBuilderResult(StringRef CallPrefix, std::vector<Ptr> Args,
662-
std::set<unsigned> AddressArgs,
663-
std::map<unsigned, std::string> IntegerArgs)
661+
IRBuilderResult(StringRef CallPrefix, const std::vector<Ptr> &Args,
662+
const std::set<unsigned> &AddressArgs,
663+
const std::map<unsigned, std::string> &IntegerArgs)
664664
: CallPrefix(CallPrefix), Args(Args), AddressArgs(AddressArgs),
665665
IntegerArgs(IntegerArgs) {}
666666
void genCode(raw_ostream &OS,
@@ -727,8 +727,9 @@ class IRIntrinsicResult : public Result {
727727
std::string IntrinsicID;
728728
std::vector<const Type *> ParamTypes;
729729
std::vector<Ptr> Args;
730-
IRIntrinsicResult(StringRef IntrinsicID, std::vector<const Type *> ParamTypes,
731-
std::vector<Ptr> Args)
730+
IRIntrinsicResult(StringRef IntrinsicID,
731+
const std::vector<const Type *> &ParamTypes,
732+
const std::vector<Ptr> &Args)
732733
: IntrinsicID(std::string(IntrinsicID)), ParamTypes(ParamTypes),
733734
Args(Args) {}
734735
void genCode(raw_ostream &OS,

0 commit comments

Comments
 (0)