Skip to content

Commit 7bf43cf

Browse files
authored
Revert to explicit StringRef conversion to check the tests
1 parent 0d00426 commit 7bf43cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/tools/llvm-mca/X86/TestIncrementalMCA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ TEST_F(X86TestBase, TestInstructionCustomization) {
246246
MCIs.push_back(InstructionToAdd);
247247
SmallVector<std::pair<StringRef, StringRef>> InstrDescs;
248248
auto LatStr = std::to_string(ExplicitLatency);
249-
InstrDescs.push_back(std::make_pair("LATENCY", LatStr));
249+
InstrDescs.push_back(std::make_pair(StringRef("LATENCY"), StringRef(LatStr)));
250250

251251
// Run the baseline.
252252
json::Object BaselineResult;

0 commit comments

Comments
 (0)