Skip to content

Commit 404f1b2

Browse files
authored
Fix clang warning
1 parent e39668d commit 404f1b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/unittests/Optimizer/InternalNamesTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ TEST(InternalNamesTest, doProgramEntry) {
163163
}
164164

165165
TEST(InternalNamesTest, doNamelistGroup) {
166-
llvm::StringRef actual = NameUniquer::doNamelistGroup({"mod1"}, {}, {"nlg"});
166+
std::string actual = NameUniquer::doNamelistGroup({"mod1"}, {}, "nlg");
167167
std::string expectedMangledName = "_QMmod1Gnlg";
168-
ASSERT_EQ(actual.str(), expectedMangledName);
168+
ASSERT_EQ(actual, expectedMangledName);
169169
}
170170

171171
TEST(InternalNamesTest, deconstructTest) {

0 commit comments

Comments
 (0)