[Openmp-commits] [openmp] ab15b11 - [NFC][OMPT] Move `pop_macro` to the right place to fix compile warnings

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 2 07:28:02 PDT 2023


Author: Shilei Tian
Date: 2023-08-02T10:27:57-04:00
New Revision: ab15b11c41fbffc2d95dfd5ddfa5feb3cace2109

URL: https://github.com/llvm/llvm-project/commit/ab15b11c41fbffc2d95dfd5ddfa5feb3cace2109
DIFF: https://github.com/llvm/llvm-project/commit/ab15b11c41fbffc2d95dfd5ddfa5feb3cace2109.diff

LOG: [NFC][OMPT] Move `pop_macro` to the right place to fix compile warnings

Added: 
    

Modified: 
    openmp/libomptarget/include/OmptCallback.h

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/include/OmptCallback.h b/openmp/libomptarget/include/OmptCallback.h
index 79d6bf8b0dafde..ca4e73670daea5 100644
--- a/openmp/libomptarget/include/OmptCallback.h
+++ b/openmp/libomptarget/include/OmptCallback.h
@@ -96,10 +96,10 @@ extern bool Initialized;
 } // namespace omp
 } // namespace llvm
 
+#pragma pop_macro("DEBUG_PREFIX")
+
 #else
 #define performIfOmptInitialized(stmt)
 #endif // OMPT_SUPPORT
 
-#pragma pop_macro("DEBUG_PREFIX")
-
 #endif // _OMPTCALLBACK_H


        


More information about the Openmp-commits mailing list