[llvm] c42580b - [ORC] Don't try to obtain a ref to a non-existent buffer.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue May 18 08:44:28 PDT 2021
Author: Lang Hames
Date: 2021-05-18T08:44:15-07:00
New Revision: c42580bf2076607220c2c9c59ab7293a9b202aca
URL: https://github.com/llvm/llvm-project/commit/c42580bf2076607220c2c9c59ab7293a9b202aca
DIFF: https://github.com/llvm/llvm-project/commit/c42580bf2076607220c2c9c59ab7293a9b202aca.diff
LOG: [ORC] Don't try to obtain a ref to a non-existent buffer.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
index 44dc45f93f297..c10aa15ef2697 100644
--- a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
@@ -139,7 +139,9 @@ class ObjectLinkingLayerJITLinkContext final : public JITLinkContext {
void notifyMaterializing(LinkGraph &G) {
for (auto &P : Layer.Plugins)
- P->notifyMaterializing(*MR, G, *this, ObjBuffer->getMemBufferRef());
+ P->notifyMaterializing(*MR, G, *this,
+ ObjBuffer ? ObjBuffer->getMemBufferRef()
+ : MemoryBufferRef());
}
void notifyFailed(Error Err) override {
More information about the llvm-commits
mailing list