[all-commits] [llvm/llvm-project] 6fb6bd: Fix the value_type of defusechain_iterator to matc...
Nicolas Guillemot via All-commits
all-commits at lists.llvm.org
Mon Mar 1 10:41:30 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6fb6bdff3701b00af4a573604f599093f7555bcf
https://github.com/llvm/llvm-project/commit/6fb6bdff3701b00af4a573604f599093f7555bcf
Author: Nicolas Guillemot <nguillemot at apple.com>
Date: 2021-03-01 (Mon, 01 Mar 2021)
Changed paths:
M llvm/include/llvm/CodeGen/MachineRegisterInfo.h
Log Message:
-----------
Fix the value_type of defusechain_iterator to match its operator*()
defusechain_iterator has an operator*() and operator->() that return
references to a MachineOperand, but its "reference" and "pointer"
typedefs are set as if the iterator returns a MachineInstr reference.
This causes compilation errors when defusechain_iterator is used in
generic code that uses the "reference" and "pointer" typedefs.
This patch fixes this by updating the typedefs to use MachineOperand
instead of MachineInstr.
Reviewed By: mkitzan
Differential Revision: https://reviews.llvm.org/D97522
More information about the All-commits
mailing list