[llvm] c8fcfe1 - [SandboxIR][NFC] Fix unittest build warning in release

Vasileios Porpodas via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 17 13:13:40 PDT 2024


Author: Vasileios Porpodas
Date: 2024-09-17T13:13:16-07:00
New Revision: c8fcfe1980999688f22a4ee53ec7c65c8c055752

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

LOG: [SandboxIR][NFC] Fix unittest build warning in release

Added: 
    

Modified: 
    llvm/unittests/SandboxIR/PassTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/SandboxIR/PassTest.cpp b/llvm/unittests/SandboxIR/PassTest.cpp
index ed226d57655861..2eaf369caf084b 100644
--- a/llvm/unittests/SandboxIR/PassTest.cpp
+++ b/llvm/unittests/SandboxIR/PassTest.cpp
@@ -179,7 +179,7 @@ TEST_F(PassTest, ParsePassPipeline) {
   Registry.registerPass(std::make_unique<TestPass1>());
   Registry.registerPass(std::make_unique<TestPass2>());
 
-  auto &FPM =
+  [[maybe_unused]] auto &FPM =
       Registry.parseAndCreatePassPipeline("test-pass1,test-pass2,test-pass1");
 #ifndef NDEBUG
   std::string Buff;


        


More information about the llvm-commits mailing list