[llvm] 9f5139c - [SandboxIR] Fix unused variable build error

Vasileios Porpodas via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 17:59:04 PDT 2024


Author: Vasileios Porpodas
Date: 2024-09-18T17:58:23-07:00
New Revision: 9f5139ccee0ca6134edeb61d15dd4ae123f5149d

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

LOG: [SandboxIR] Fix unused variable build error

Added: 
    

Modified: 
    llvm/unittests/SandboxIR/SandboxIRTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/SandboxIR/SandboxIRTest.cpp b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
index 312705caad1a6e..1c946d6cb05a82 100644
--- a/llvm/unittests/SandboxIR/SandboxIRTest.cpp
+++ b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
@@ -1751,7 +1751,6 @@ define void @foo(i8 %v1, ptr %ptr) {
   llvm::Function *LLVMF = &*M->getFunction("foo");
   sandboxir::Context Ctx(C);
   sandboxir::Function *F = Ctx.createFunction(LLVMF);
-  auto *Arg = F->getArg(0);
   auto *BB = &*F->begin();
   auto It = BB->begin();
   auto *Add0 = cast<sandboxir::BinaryOperator>(&*It++);


        


More information about the llvm-commits mailing list