From: Bjorn Pettersson Date: Fri, 14 Aug 2020 13:58:04 +0000 (+0200) Subject: [Orc] Fix werror for unused variable in noasserts build X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b395d67a886c4499fab4e93e2a8cec87b71db15a;p=platform%2Fupstream%2Fllvm.git [Orc] Fix werror for unused variable in noasserts build --- diff --git a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h index f35fc6d..b255ddd 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h @@ -408,7 +408,9 @@ public: return errorCodeToError(EC); char *SlabAddr = static_cast(HostAllocation.base()); +#ifndef NDEBUG char *SlabAddrEnd = SlabAddr + HostAllocation.allocatedSize(); +#endif // Allocate segment memory from the slab. for (auto &KV : Request) {