[llvm] 376e90f - [ORC] Fix reference to struct member in f448d44663a.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 8 16:11:20 PDT 2023


Author: Lang Hames
Date: 2023-04-08T16:11:14-07:00
New Revision: 376e90fdb4932f405631cce501ea7664cf76a670

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

LOG: [ORC] Fix reference to struct member in f448d44663a.

A map value was converted from a tuple to a struct during development, but I
missed a use in an assert.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
index 685d5f04f50d..793bc3507b02 100644
--- a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
@@ -1336,7 +1336,7 @@ Error MachOPlatform::MachOPlatformPlugin::populateObjCRuntimeObject(
     std::lock_guard<std::mutex> Lock(PluginMutex);
     auto I = ObjCImageInfos.find(&MR.getTargetJITDylib());
     assert(I != ObjCImageInfos.end() && "Missing __objc_imageinfo");
-    assert(std::get<2>(I->second) && "Null __objc_imageinfo");
+    assert(I->second.Addr && "Null __objc_imageinfo");
     Sec.addr = I->second.Addr - SecBlock.getAddress();
     Sec.size = 8;
   }


        


More information about the llvm-commits mailing list