[compiler-rt] ba9e280 - [ORC-RT] Fix an error check.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 13 18:59:57 PDT 2021


Author: Lang Hames
Date: 2021-06-14T11:59:20+10:00
New Revision: ba9e28064b25b199715b3a10f3bd3f7ac8cd6dfb

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

LOG: [ORC-RT] Fix an error check.

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 05ee416399eb..08f17abe794c 100644
--- a/compiler-rt/lib/orc/wrapper_function_utils.h
+++ b/compiler-rt/lib/orc/wrapper_function_utils.h
@@ -289,7 +289,7 @@ class WrapperFunction<SPSRetTagT(SPSTagTs...)> {
 
     if (ORC_RT_UNLIKELY(!&__orc_rt_jit_dispatch_ctx))
       return make_error<StringError>("__orc_jtjit_dispatch_ctx not set");
-    if (ORC_RT_UNLIKELY(!&__orc_rt_jit_dispatch_ctx))
+    if (ORC_RT_UNLIKELY(!&__orc_rt_jit_dispatch))
       return make_error<StringError>("__orc_jtjit_dispatch not set");
 
     auto ArgBuffer =


        


More information about the llvm-commits mailing list