[llvm] r365952 - Fix missing use of defined() in include guard
David Tenty via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 13:12:16 PDT 2019
Author: daltenty
Date: Fri Jul 12 13:12:15 2019
New Revision: 365952
URL: http://llvm.org/viewvc/llvm-project?rev=365952&view=rev
Log:
Fix missing use of defined() in include guard
Subscribers: arsenm, jvesely, nhaehnle, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64657
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPULibCalls.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPULibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPULibCalls.cpp?rev=365952&r1=365951&r2=365952&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPULibCalls.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPULibCalls.cpp Fri Jul 12 13:12:15 2019
@@ -865,7 +865,7 @@ bool AMDGPULibCalls::fold_divide(CallIns
namespace llvm {
static double log2(double V) {
-#if _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
+#if _XOPEN_SOURCE >= 600 || defined(_ISOC99_SOURCE) || _POSIX_C_SOURCE >= 200112L
return ::log2(V);
#else
return log(V) / 0.693147180559945309417;
More information about the llvm-commits
mailing list