[llvm] 3d74696 - [ORC] Silence unused variable warnings in Release builds. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu May 6 04:38:16 PDT 2021
Author: Benjamin Kramer
Date: 2021-05-06T13:37:48+02:00
New Revision: 3d746962ed1831987c6a1ab54fe8f6cbb6477e0e
URL: https://github.com/llvm/llvm-project/commit/3d746962ed1831987c6a1ab54fe8f6cbb6477e0e
DIFF: https://github.com/llvm/llvm-project/commit/3d746962ed1831987c6a1ab54fe8f6cbb6477e0e.diff
LOG: [ORC] Silence unused variable warnings in Release builds. NFC.
Added:
Modified:
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
index efafb685c46a..0d1e1b94f126 100644
--- a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
@@ -93,12 +93,14 @@ class OrcCAPITestBase : public testing::Test {
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);
}
More information about the llvm-commits
mailing list