We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c56a3c commit 2c125c8Copy full SHA for 2c125c8
include/cudaq/Optimizer/Dialect/Quake/QuakeOps.td
@@ -443,7 +443,9 @@ def quake_ApplyOp : QuakeOp<"apply",
443
444
/// Return the callee of this operation.
445
mlir::CallInterfaceCallable getCallableForCallee() {
446
- return (*this)->getAttrOfType<mlir::SymbolRefAttr>(getCalleeAttrName());
+ if (getCallee())
447
+ return (*this)->getAttrOfType<mlir::SymbolRefAttr>(getCalleeAttrName());
448
+ return getIndirectCallee().front();
449
}
450
}];
451
0 commit comments