소스 검색

Force mixin result to value (not addr)

Brian Fiete 3 년 전
부모
커밋
6b1d9df8d2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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"
 		// If we didn't have an expression body then just make the result "void"
 		mResult = BfTypedValue(BfIRValue(), mModule->GetPrimitiveType(BfTypeCode_None));
 		mResult = BfTypedValue(BfIRValue(), mModule->GetPrimitiveType(BfTypeCode_None));
 	}
 	}
+
+	mResult = mModule->LoadValue(mResult);
 	
 	
 	int localIdx = startLocalIdx;
 	int localIdx = startLocalIdx;