aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsharmander <saldabain.dev@gmail.com>2023-10-07 08:42:10 -0700
committerGitHub <noreply@github.com>2023-10-07 17:42:10 +0200
commite40470bbe1eeed7bdc15dcf51226e374453c1942 (patch)
tree8935d8746a3a4a3574e24f0b11f2d85adad6b80f
parentf460ecc1829c1b34f2198cc41528b1c6de99d976 (diff)
Fix return value of Get function when a result does not yet exist for the address. (#5768)1.1.1048
-rw-r--r--src/ARMeilleure/Diagnostics/Symbols.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ARMeilleure/Diagnostics/Symbols.cs b/src/ARMeilleure/Diagnostics/Symbols.cs
index bb2f5cef..d857c079 100644
--- a/src/ARMeilleure/Diagnostics/Symbols.cs
+++ b/src/ARMeilleure/Diagnostics/Symbols.cs
@@ -34,7 +34,6 @@ namespace ARMeilleure.Diagnostics
public static string Get(ulong address)
{
-
if (_symbols.TryGetValue(address, out string result))
{
return result;
@@ -57,7 +56,8 @@ namespace ARMeilleure.Diagnostics
resultBuilder.Append($"+{rem}");
}
- _symbols.TryAdd(address, resultBuilder.ToString());
+ result = resultBuilder.ToString();
+ _symbols.TryAdd(address, result);
return result;
}