summaryrefslogtreecommitdiffstats
path: root/openmp
diff options
context:
space:
mode:
authorGuansong Zhang <zhang.guansong@gmail.com>2018-04-10 15:28:31 +0000
committerGuansong Zhang <zhang.guansong@gmail.com>2018-04-10 15:28:31 +0000
commitf679431f916e85240b6165dc29304314ebb6c444 (patch)
tree3a6d8197bd20ff427bb7b18100642234c8a4d796 /openmp
parentc0a5c01aebc4c7aa3f6abdd8c3e0a0f35db41ff4 (diff)
downloadbcm5719-llvm-f679431f916e85240b6165dc29304314ebb6c444.tar.gz
bcm5719-llvm-f679431f916e85240b6165dc29304314ebb6c444.zip
[OpenMP] Remove extra warning when we build
Summary: This one line change is to remove this warning message "warning: integer conversion resulted in a change of sign" Reviewers: grokos Reviewed By: grokos Subscribers: openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D45415 llvm-svn: 329713
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libomptarget/deviceRTLs/nvptx/src/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h b/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
index 908d6d7a6ea..1468757fc12 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
+++ b/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
@@ -159,7 +159,7 @@
// implement
#if OMPTARGET_NVPTX_DEBUG
-#define DON(_flag) ((OMPTARGET_NVPTX_DEBUG) & (_flag))
+#define DON(_flag) ((unsigned)(OMPTARGET_NVPTX_DEBUG) & (_flag))
#define PRINT0(_flag, _str) \
{ \
OpenPOWER on IntegriCloud