C++: Fix off-by-one error in getType on 'FinalGlobalValue' nodes and accept test changes.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-08-19 13:03:53 +02:00
parent 302d35bedc
commit 16508b1800
4 changed files with 7 additions and 5 deletions

View File

@@ -52,10 +52,10 @@ Top *readGlobalBottom() {
}
void DispatchThroughGlobal() {
sink(globalBottom->isSource1()); // $ MISSING: ast,ir
sink(globalBottom->isSource1()); // $ ir MISSING: ast
sink(globalMiddle->isSource1()); // no flow
sink(readGlobalBottom()->isSource1()); // $ MISSING: ast,ir
sink(readGlobalBottom()->isSource1()); // $ ir MISSING: ast
globalBottom = new Bottom();
globalMiddle = new Middle();