summaryrefslogtreecommitdiff
path: root/highlevelilinstruction.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 /highlevelilinstruction.cpp
parentb1a7666164a000c5255f90568ed9597b58ce276a (diff)
Remove implicit conversions from Confidence to underlying type, these can cause bugs and also issues with C++20
Diffstat (limited to 'highlevelilinstruction.cpp')
-rw-r--r--highlevelilinstruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/highlevelilinstruction.cpp b/highlevelilinstruction.cpp
index 33c5db29..ce0e72ee 100644
--- a/highlevelilinstruction.cpp
+++ b/highlevelilinstruction.cpp
@@ -940,7 +940,7 @@ char* HighLevelILInstructionBase::Dump() const
{
text += "[instr " + to_string(instructionIndex) + "] ";
}
- Ref<Type> type = GetType();
+ Ref<Type> type = GetType().GetValue();
if (type)
{
text += "[type: " + type->GetString() + "] ";
@@ -3344,7 +3344,7 @@ fmt::format_context::iterator fmt::formatter<HighLevelILInstruction>::format(con
{
fmt::format_to(ctx.out(), "[instr {}] ", obj.instructionIndex);
}
- Ref<Type> type = obj.GetType();
+ Ref<Type> type = obj.GetType().GetValue();
if (type)
{
fmt::format_to(ctx.out(), "[type: {}] ", type->GetString());