From: Alexey Bataev Date: Thu, 21 Mar 2019 20:52:04 +0000 (+0000) Subject: [OPENMP]Fix a warning about unused variable, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d489988e53d97d625e8dfe02ca57f39bb36d97d9;p=clang [OPENMP]Fix a warning about unused variable, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356715 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index fd294dab64..46b1b0faae 100644 --- a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp @@ -4773,6 +4773,7 @@ Address CGOpenMPRuntimeNVPTX::getAddressOfLocalVariable(CodeGenFunction &CGF, // UseDefaultAllocator ? Address::invalid : // CGOpenMPRuntime::getAddressOfLocalVariable(CGF, VD); when NVPTX libomp // supports __kmpc_alloc|__kmpc_free. + (void)UseDefaultAllocator; // Prevent a warning. return Address::invalid(); }