[Openmp-commits] [openmp] 62b11e1 - [OpenMP][NFC] Actually use a string in the error message

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Wed Dec 6 15:06:32 PST 2023


Author: Johannes Doerfert
Date: 2023-12-06T15:06:21-08:00
New Revision: 62b11e1b1640edfdc9e3f3f2d62c666622c1daee

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

LOG: [OpenMP][NFC] Actually use a string in the error message

Added: 
    

Modified: 
    openmp/libomptarget/src/PluginManager.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/src/PluginManager.cpp b/openmp/libomptarget/src/PluginManager.cpp
index f93e88e9e2747..16e04dde923d9 100644
--- a/openmp/libomptarget/src/PluginManager.cpp
+++ b/openmp/libomptarget/src/PluginManager.cpp
@@ -61,7 +61,7 @@ Error PluginAdaptorTy::init() {
     return createStringError(inconvertibleErrorCode(),                         \
                              "Invalid plugin as necessary interface function " \
                              "(%s) was not found.\n",                          \
-                             NAME);                                            \
+                             std::string(#NAME).c_str());                      \
   }
 
 #include "Shared/PluginAPI.inc"


        


More information about the Openmp-commits mailing list