[llvm] 3ecd331 - [CAS] Fix MSVC warning after #114096 (#153430)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 13 09:51:08 PDT 2025


Author: Steven Wu
Date: 2025-08-13T09:51:05-07:00
New Revision: 3ecd331808abe0dae36436170df4468765900e0b

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

LOG: [CAS] Fix MSVC warning after #114096 (#153430)

Correct use of `SCOPED_TRACE` and fix MSVC warning.

Added: 
    

Modified: 
    llvm/unittests/CAS/ObjectStoreTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/CAS/ObjectStoreTest.cpp b/llvm/unittests/CAS/ObjectStoreTest.cpp
index c036d31bf3836..884cf886e720c 100644
--- a/llvm/unittests/CAS/ObjectStoreTest.cpp
+++ b/llvm/unittests/CAS/ObjectStoreTest.cpp
@@ -273,7 +273,7 @@ TEST_P(CASTest, NodesBig) {
 static void testBlobsParallel(ObjectStore &Read1, ObjectStore &Read2,
                               ObjectStore &Write1, ObjectStore &Write2,
                               uint64_t BlobSize) {
-  SCOPED_TRACE(testBlobsParallel);
+  SCOPED_TRACE("testBlobsParallel");
   unsigned BlobCount = 100;
   std::vector<std::string> Blobs;
   Blobs.reserve(BlobCount);
@@ -325,7 +325,7 @@ static void testBlobsParallel(ObjectStore &Read1, ObjectStore &Read2,
 }
 
 static void testBlobsParallel1(ObjectStore &CAS, uint64_t BlobSize) {
-  SCOPED_TRACE(testBlobsParallel1);
+  SCOPED_TRACE("testBlobsParallel1");
   testBlobsParallel(CAS, CAS, CAS, CAS, BlobSize);
 }
 


        


More information about the llvm-commits mailing list