summaryrefslogtreecommitdiff
path: root/mediumlevelil.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-07-12 21:45:43 -0400
committerGlenn Smith <glenn@vector35.com>2025-07-12 22:07:24 -0400
commit6592214139290634550860697116801883131153 (patch)
tree0ada0a799ffed83a7253cfdaf0c40f6c8b013d6a /mediumlevelil.cpp
parent8143954882881079807041861702046354507957 (diff)
Allow constructing MLILFunction with null LLILFunction/Function
Diffstat (limited to 'mediumlevelil.cpp')
-rw-r--r--mediumlevelil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediumlevelil.cpp b/mediumlevelil.cpp
index 2eb2f9bd..4f6afe27 100644
--- a/mediumlevelil.cpp
+++ b/mediumlevelil.cpp
@@ -33,7 +33,7 @@ MediumLevelILLabel::MediumLevelILLabel()
MediumLevelILFunction::MediumLevelILFunction(Architecture* arch, Function* func, LowLevelILFunction* lowLevelIL)
{
- m_object = BNCreateMediumLevelILFunction(arch->GetObject(), func->GetObject(), lowLevelIL->GetObject());
+ m_object = BNCreateMediumLevelILFunction(arch->GetObject(), func ? func->GetObject() : nullptr, lowLevelIL ? lowLevelIL->GetObject() : nullptr);
}