Browse Source

Fixed Og+ vector cast

Brian Fiete 2 years ago
parent
commit
07f14f0ab8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      IDEHelper/Backend/BeMCContext.cpp

+ 1 - 1
IDEHelper/Backend/BeMCContext.cpp

@@ -17810,7 +17810,7 @@ void BeMCContext::Generate(BeFunction* function)
 								result = AllocVirtualReg(intrin->mReturnType);
 								CreateDefineVReg(result);
 								auto vregInfo = GetVRegInfo(result);
-								vregInfo->mRelTo = GetOperand(castedInst->mArgs[0].mValue);
+								vregInfo->mRelTo = TryToVector(castedInst->mArgs[0].mValue);
 								vregInfo->mIsExpr = true;
 							}
 							break;