summaryrefslogtreecommitdiff
path: root/mediumlevelilinstruction.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 /mediumlevelilinstruction.cpp
parentb1a7666164a000c5255f90568ed9597b58ce276a (diff)
Remove implicit conversions from Confidence to underlying type, these can cause bugs and also issues with C++20
Diffstat (limited to 'mediumlevelilinstruction.cpp')
-rw-r--r--mediumlevelilinstruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediumlevelilinstruction.cpp b/mediumlevelilinstruction.cpp
index ecdac2e8..5e5c28fb 100644
--- a/mediumlevelilinstruction.cpp
+++ b/mediumlevelilinstruction.cpp
@@ -1116,7 +1116,7 @@ char* MediumLevelILInstructionBase::Dump() const
{
text += "[instr " + to_string(instructionIndex) + "] ";
}
- Ref<Type> type = GetType();
+ Ref<Type> type = GetType().GetValue();
if (type)
{
text += "[type: " + type->GetString() + "] ";
@@ -3196,7 +3196,7 @@ fmt::format_context::iterator fmt::formatter<MediumLevelILInstruction>::format(c
{
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());