Skip to content

Commit ab14353

Browse files
authored
Precompute: Skip RefGetDesc for now (#7651)
This allows users to optimize custom descriptors content without erroring, unblocking them for now.
1 parent 2b989ae commit ab14353

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/passes/Precompute.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ class PrecomputingExpressionRunner
240240
// string.encode_wtf16_array anyhow.)
241241
return Flow(NONCONSTANT_FLOW);
242242
}
243+
244+
Flow visitRefGetDesc(RefGetDesc* curr) {
245+
// TODO: Implement this. For now, return nonconstant so that we skip it and
246+
// do not error.
247+
return Flow(NONCONSTANT_FLOW);
248+
}
243249
};
244250

245251
struct Precompute

0 commit comments

Comments
 (0)