Verify that the first block of a cfgfunc does not have predecessors.
This was left as a TODO in the code. Note that the spec does not explicitly prohibit the first basic block from having a predecessor, and may be worth updating. The error is reported at the location of the cfgfunc to which the basic block belongs since the location information of the block label is not propagated beyond the IR parser. Arguably, pointing to a function that starts with an ill-formed block is better than pointing to the first operation in that block as it makes easier to follow the code down until the first block label. PiperOrigin-RevId: 218343654
Loading
Please sign in to comment