Skip to content

Commit bf3aa88

Browse files
[GlobalISel] Combiner: Install Observer into MachineFunction
The Combiner doesn't install the Observer into the MachineFunction. This probably went unnoticed, because MachineFunction::getObserver() is currently only used in constrainOperandRegClass(), but this might cause issues down the line. Pull Request: #102156
1 parent d1957dd commit bf3aa88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/GlobalISel/Combiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ bool Combiner::combineMachineInstrs() {
153153
// down RPOT.
154154
Changed = false;
155155

156-
RAIIDelegateInstaller DelInstall(MF, ObserverWrapper.get());
156+
RAIIMFObsDelInstaller DelInstall(MF, *ObserverWrapper);
157157
for (MachineBasicBlock *MBB : post_order(&MF)) {
158158
for (MachineInstr &CurMI :
159159
llvm::make_early_inc_range(llvm::reverse(*MBB))) {

0 commit comments

Comments
 (0)