[ORC] Fix reference to struct member in f448d44663a.
authorLang Hames <lhames@gmail.com>
Sat, 8 Apr 2023 23:09:45 +0000 (16:09 -0700)
committerLang Hames <lhames@gmail.com>
Sat, 8 Apr 2023 23:11:14 +0000 (16:11 -0700)
A map value was converted from a tuple to a struct during development, but I
missed a use in an assert.

llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp

index 685d5f0..793bc35 100644 (file)
@@ -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;
   }