summaryrefslogtreecommitdiff
path: root/lang/c/pseudoobjc.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2025-06-24 17:55:48 -0400
committerAlexander Taylor <alex@vector35.com>2025-06-25 18:36:47 -0400
commitc41f264a1dba68c89b4a224a70e3a5783f7fa879 (patch)
tree00bb6e91d86b708bff7265ed7179a6ef2793b7fb /lang/c/pseudoobjc.cpp
parentb1a7666164a000c5255f90568ed9597b58ce276a (diff)
Remove implicit conversions from Confidence to underlying type, these can cause bugs and also issues with C++20
Diffstat (limited to 'lang/c/pseudoobjc.cpp')
-rw-r--r--lang/c/pseudoobjc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/c/pseudoobjc.cpp b/lang/c/pseudoobjc.cpp
index c832e388..c76eabac 100644
--- a/lang/c/pseudoobjc.cpp
+++ b/lang/c/pseudoobjc.cpp
@@ -21,7 +21,7 @@ bool ParameterIsString(const HighLevelILInstruction& expr)
if (!exprType || exprType->GetClass() != PointerTypeClass)
return false;
- if (auto child = exprType->GetChildType(); child)
+ if (auto child = exprType->GetChildType(); child.GetValue())
{
child = child->IsArray() ? child->GetChildType() : child;
return child->IsInteger() && child->IsSigned() && child->GetWidth() == 1;
@@ -215,7 +215,7 @@ bool VariableIsObjCSuperStruct(const Variable& variable, Function& function)
if (variableName != "super")
return false;
- const auto variableType = TypeResolvingNamedTypeReference(function.GetVariableType(variable), function);
+ const auto variableType = TypeResolvingNamedTypeReference(function.GetVariableType(variable).GetValue(), function);
if (!variableType || variableType->GetClass() != StructureTypeClass)
return false;
@@ -453,7 +453,7 @@ void PseudoObjCFunction::GetExpr_CONST_PTR(const BinaryNinja::HighLevelILInstruc
if (!hasVariable)
return PseudoCFunction::GetExpr_CONST_PTR(instr, tokens, settings, precedence, statement);
- auto type = TypeResolvingNamedTypeReference(variable.type, *GetFunction());
+ auto type = TypeResolvingNamedTypeReference(variable.type.GetValue(), *GetFunction());
if (!type || type->GetClass() != StructureTypeClass)
return PseudoCFunction::GetExpr_CONST_PTR(instr, tokens, settings, precedence, statement);