[compiler-rt] 21369d4 - [ORC-RT] Use function pointer type (rather than reference) for traits class.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 19 19:53:26 PDT 2021


Author: Lang Hames
Date: 2021-10-19T18:38:01-07:00
New Revision: 21369d4b9d9233d0b58ea82b649435745d8dde70

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

LOG: [ORC-RT] Use function pointer type (rather than reference) for traits class.

Aligns this template with the corresponding one in LLVM.

Added: 
    

Modified: 
    compiler-rt/lib/orc/wrapper_function_utils.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/orc/wrapper_function_utils.h b/compiler-rt/lib/orc/wrapper_function_utils.h
index a78c999ae5a2..cf00d6ec070d 100644
--- a/compiler-rt/lib/orc/wrapper_function_utils.h
+++ b/compiler-rt/lib/orc/wrapper_function_utils.h
@@ -184,10 +184,10 @@ class WrapperFunctionHandlerHelper<RetT(ArgTs...), ResultSerializer,
   }
 };
 
-// Map function references to function types.
+// Map function pointers to function types.
 template <typename RetT, typename... ArgTs,
           template <typename> class ResultSerializer, typename... SPSTagTs>
-class WrapperFunctionHandlerHelper<RetT (&)(ArgTs...), ResultSerializer,
+class WrapperFunctionHandlerHelper<RetT (*)(ArgTs...), ResultSerializer,
                                    SPSTagTs...>
     : public WrapperFunctionHandlerHelper<RetT(ArgTs...), ResultSerializer,
                                           SPSTagTs...> {};


        


More information about the llvm-commits mailing list