[llvm] 3ca6eee - [ORC] Fix self-assignment.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 13 17:27:24 PDT 2021


Author: Lang Hames
Date: 2021-09-14T10:21:49+10:00
New Revision: 3ca6eee2a975edcfa49d8adff6b90df6f8e1ba85

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

LOG: [ORC] Fix self-assignment.

We want to read the page size from EPI->PageSize. Thanks to Simon Pilgrim for
spotting this.

Added: 
    

Modified: 
    llvm/include/llvm/ExecutionEngine/Orc/OrcRPCExecutorProcessControl.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ExecutionEngine/Orc/OrcRPCExecutorProcessControl.h b/llvm/include/llvm/ExecutionEngine/Orc/OrcRPCExecutorProcessControl.h
index c701d9e4d1ca..498e881eec77 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/OrcRPCExecutorProcessControl.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/OrcRPCExecutorProcessControl.h
@@ -401,7 +401,7 @@ class OrcRPCExecutorProcessControlBase : public ExecutorProcessControl {
   Error initializeORCRPCEPCBase() {
     if (auto EPI = EP.template callB<orcrpctpc::GetExecutorProcessInfo>()) {
       this->TargetTriple = Triple(EPI->Triple);
-      this->PageSize = PageSize;
+      this->PageSize = EPI->PageSize;
       this->JDI = {ExecutorAddress(EPI->DispatchFuncAddr),
                    ExecutorAddress(EPI->DispatchCtxAddr)};
       return Error::success();


        


More information about the llvm-commits mailing list