Skip to content

Commit a4782ff

Browse files
[llvm-mca] Drop const from a return type (NFC) (#140836)
1 parent 211ee04 commit a4782ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/tools/llvm-mca/CodeRegion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void InstrumentRegions::endRegion(StringRef Description, SMLoc Loc) {
158158
}
159159
}
160160

161-
const SmallVector<Instrument *>
161+
SmallVector<Instrument *>
162162
InstrumentRegions::getActiveInstruments(SMLoc Loc) const {
163163
SmallVector<Instrument *> AI;
164164
for (auto &R : Regions) {

llvm/tools/llvm-mca/CodeRegion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ struct InstrumentRegions : public CodeRegions {
210210
UniqueInstrument Instrument) override;
211211
void endRegion(llvm::StringRef Description, llvm::SMLoc Loc) override;
212212

213-
const SmallVector<Instrument *> getActiveInstruments(llvm::SMLoc Loc) const;
213+
SmallVector<Instrument *> getActiveInstruments(llvm::SMLoc Loc) const;
214214
};
215215

216216
} // namespace mca

0 commit comments

Comments
 (0)