From 3d746962ed1831987c6a1ab54fe8f6cbb6477e0e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 6 May 2021 13:37:26 +0200 Subject: [PATCH] [ORC] Silence unused variable warnings in Release builds. NFC. --- llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp index efafb68..0d1e1b9 100644 --- a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp @@ -93,12 +93,14 @@ public: LLVMOrcJITTargetMachineBuilderRef JTMB = nullptr; LLVMErrorRef E1 = LLVMOrcJITTargetMachineBuilderDetectHost(&JTMB); assert(E1 == LLVMErrorSuccess && "Expected call to detect host to succeed"); + (void)E1; LLVMOrcLLJITBuilderRef Builder = LLVMOrcCreateLLJITBuilder(); LLVMOrcLLJITBuilderSetJITTargetMachineBuilder(Builder, JTMB); LLVMErrorRef E2 = LLVMOrcCreateLLJIT(&Jit, Builder); assert(E2 == LLVMErrorSuccess && "Expected call to create LLJIT to succeed"); + (void)E2; ExecutionSession = LLVMOrcLLJITGetExecutionSession(Jit); MainDylib = LLVMOrcLLJITGetMainJITDylib(Jit); } -- 2.7.4