[be] Clarify type of value block final value before change

Makes the type of the final value of a ValueBlock more precise, prior to 
changing it
This commit is contained in:
Joe Savona
2023-01-31 13:39:30 -08:00
parent e48b615598
commit b1548100d1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ export type ReactiveValueBlock = {
kind: "value-block";
instructions: ReactiveBlock;
last: {
value: InstructionValue;
value: Place;
id: InstructionId;
} | null;
};
@@ -418,7 +418,7 @@ class Driver {
visitValueBlock(
parent: ReactiveBlock,
block: BasicBlock,
terminalValue?: { value: InstructionValue; id: InstructionId }
terminalValue?: { value: Place; id: InstructionId }
): ReactiveValueBlock {
const valueBlock: ReactiveValueBlock = {
kind: "value-block",