projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24170fb
)
[ORC] Fix reference to struct member in f448d44663a.
author
Lang Hames
<lhames@gmail.com>
Sat, 8 Apr 2023 23:09:45 +0000
(16:09 -0700)
committer
Lang 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
patch
|
blob
|
history
diff --git
a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
index
685d5f0
..
793bc35
100644
(file)
--- 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;
}