diff options
author | Geoffrey Martin-Noble <gcmn@google.com> | 2021-09-02 12:05:33 -0700 |
---|---|---|
committer | Geoffrey Martin-Noble <gcmn@google.com> | 2021-09-02 12:05:33 -0700 |
commit | df052e1732ab57f5d9c684ceeaed3ab39073cd9f (patch) | |
tree | 9f33335260caea516578d04177d46525cee23bfb /llvm/unittests/ADT/StringMapTest.cpp | |
parent | 5881dcff7e76a68323edc8bb3c6e14420ad9cf7c (diff) | |
download | llvm-df052e1732ab57f5d9c684ceeaed3ab39073cd9f.zip llvm-df052e1732ab57f5d9c684ceeaed3ab39073cd9f.tar.gz llvm-df052e1732ab57f5d9c684ceeaed3ab39073cd9f.tar.bz2 |
Revert "Try to unbreak Win build differently after 973519826edb76"
Breaks the build and failed pre-merge checks:
https://buildkite.com/llvm-project/premerge-checks/builds/54930#07373971-3d37-49cf-9def-22c0d724ee23
> llvm-project/lld/wasm/Writer.cpp:521:16: error: non-const lvalue reference to
> type 'llvm::StringRef' cannot bind to a temporary of type 'llvm::StringRef'
> for (auto &feature : used.keys()) {
This reverts commit 5881dcff7e76a68323edc8bb3c6e14420ad9cf7c.
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/StringMapTest.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/llvm/unittests/ADT/StringMapTest.cpp b/llvm/unittests/ADT/StringMapTest.cpp index f38a604..6a3cca5 100644 --- a/llvm/unittests/ADT/StringMapTest.cpp +++ b/llvm/unittests/ADT/StringMapTest.cpp @@ -308,21 +308,7 @@ TEST_F(StringMapTest, InsertOrAssignTest) { EXPECT_EQ(0, try1.first->second.copy); } -TEST_F(StringMapTest, IterMapKeysVector) { - StringMap<int> Map; - Map["A"] = 1; - Map["B"] = 2; - Map["C"] = 3; - Map["D"] = 3; - - std::vector<StringRef> Keys{Map.keys().begin(), Map.keys().end()}; - llvm::sort(Keys); - - std::vector<StringRef> Expected{{"A", "B", "C", "D"}}; - EXPECT_EQ(Expected, Keys); -} - -TEST_F(StringMapTest, IterMapKeysSmallVector) { +TEST_F(StringMapTest, IterMapKeys) { StringMap<int> Map; Map["A"] = 1; Map["B"] = 2; |