Skip to content

Commit 317e6ff

Browse files
authored
[NFC] Move parameter into field (llvm#91065)
Fixes llvm#89194.
1 parent 4c3db25 commit 317e6ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ struct LTOCodeGenerator {
9797
void setFileType(CodeGenFileType FT) { Config.CGFileType = FT; }
9898

9999
void setCpu(StringRef MCpu) { Config.CPU = std::string(MCpu); }
100-
void setAttrs(std::vector<std::string> MAttrs) { Config.MAttrs = MAttrs; }
100+
void setAttrs(std::vector<std::string> MAttrs) {
101+
Config.MAttrs = std::move(MAttrs);
102+
}
101103
void setOptLevel(unsigned OptLevel);
102104

103105
void setShouldInternalize(bool Value) { ShouldInternalize = Value; }
104106
void setShouldEmbedUselists(bool Value) { ShouldEmbedUselists = Value; }
105107
void setSaveIRBeforeOptPath(std::string Value) {
106-
SaveIRBeforeOptPath = Value;
108+
SaveIRBeforeOptPath = std::move(Value);
107109
}
108110

109111
/// Restore linkage of globals

0 commit comments

Comments
 (0)