Răsfoiți Sursa

Force mixin result to value (not addr)

Brian Fiete 3 ani în urmă
părinte
comite
6b1d9df8d2
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 2 - 0
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -17185,6 +17185,8 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
 		// If we didn't have an expression body then just make the result "void"
 		mResult = BfTypedValue(BfIRValue(), mModule->GetPrimitiveType(BfTypeCode_None));
 	}
+
+	mResult = mModule->LoadValue(mResult);
 	
 	int localIdx = startLocalIdx;