[llvm] b2ac153 - [Support] Fix no-stat build. NFC

David Green via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 14 15:55:43 PDT 2022


Author: David Green
Date: 2022-08-14T23:55:31+01:00
New Revision: b2ac153ba4a187d18572b07c3d9d65c3838f4de5

URL: https://github.com/llvm/llvm-project/commit/b2ac153ba4a187d18572b07c3d9d65c3838f4de5
DIFF: https://github.com/llvm/llvm-project/commit/b2ac153ba4a187d18572b07c3d9d65c3838f4de5.diff

LOG: [Support] Fix no-stat build. NFC

After 9144e4933463d35df259ca8a5207119e1fc0c97c this performs the same
transform inside the other ifdef.

Added: 
    

Modified: 
    llvm/unittests/ADT/StatisticTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ADT/StatisticTest.cpp b/llvm/unittests/ADT/StatisticTest.cpp
index 470d20340e66..e4c144289bb8 100644
--- a/llvm/unittests/ADT/StatisticTest.cpp
+++ b/llvm/unittests/ADT/StatisticTest.cpp
@@ -119,7 +119,7 @@ TEST(StatisticTest, API) {
   }
 #else
   Counter2++;
-  auto &Range = GetStatistics();
+  auto Range = GetStatistics();
   EXPECT_EQ(Range.begin(), Range.end());
 #endif
 


        


More information about the llvm-commits mailing list