Commit 6ce03ff3 authored by Shubham Sandeep Rastogi's avatar Shubham Sandeep Rastogi
Browse files

Revert "[IR] Use range-based for loops (NFC)"

This reverts commit e8512786.

This revert is done because llvm::drop_begin over an empty ArrayRef
doesn't return an empty range, and therefore can lead to an invalid
address returned instead.

See discussion in https://github.com/llvm/llvm-project/pull/80737 for
more context.
parent a7bc9cb6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment