We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0212c2 commit 41b031fCopy full SHA for 41b031f
src/main/kotlin/platform/mixin/handlers/mixinextras/ModifyExpressionValueHandler.kt
@@ -46,10 +46,12 @@ class ModifyExpressionValueHandler : MixinExtrasInjectorAnnotationHandler() {
46
return false
47
}
48
49
- // TODO: fix this to make it more accurate
50
-// val returnType = getInsnReturnType(insn) ?: return false
51
-// return returnType != Type.VOID_TYPE
52
- return true
+ if (decorations[ExpressionDecorations.SIMPLE_EXPRESSION_TYPE] != null) {
+ return true
+ }
+
53
+ val returnType = getInsnReturnType(insn) ?: return false
54
+ return returnType != Type.VOID_TYPE
55
56
57
override val allowedInsnDescription = "instructions that return a value"
0 commit comments