If bottom block of the loop is the last basic block in function,
dereferencing of end() iterator can occur (and for other basic
blocks the condition is always false); fix typo in this check.
Details
Details
- Reviewers
fhahn
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
NFC because for now this method is not used by any LLVM pass; this looks like a typo of some old code refactoring (MachineLoop::getTopBlock is correct BTW)
Comment Actions
Ping (not critical for upstream because this method is never used, but we are using it in downstream compiler)