aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2021-01-10 14:41:13 +0000
committerFlorian Hahn <flo@fhahn.com>2021-01-10 14:41:13 +0000
commitc701f85c45589091f0d232fc2bc0bc390a6ab684 (patch)
treef059295b7a2e1f5a1db37403a4e72613817370ab /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent47991a15d1925cba4687c5077cc9c81c8fcd00bd (diff)
downloadllvm-c701f85c45589091f0d232fc2bc0bc390a6ab684.zip
llvm-c701f85c45589091f0d232fc2bc0bc390a6ab684.tar.gz
llvm-c701f85c45589091f0d232fc2bc0bc390a6ab684.tar.bz2
[STLExtras] Use return type from operator* of the wrapped iter.
Currently make_early_inc_range cannot be used with iterators with operator* implementations that do not return a reference. Most notably in the LLVM codebase, this means the User iterator ranges cannot be used with make_early_inc_range, which slightly simplifies iterating over ranges while elements are removed. Instead of directly using BaseT::reference as return type of operator*, this patch uses decltype to get the actual return type of the operator* implementation in WrappedIteratorT. This patch also updates a few places to use make use of make_early_inc_range. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D93992
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions