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 2c0ac74 commit 4954d14Copy full SHA for 4954d14
offload/plugins-nextgen/amdgpu/src/rtl.cpp
@@ -999,6 +999,7 @@ struct AMDGPUStreamTy {
999
if (Callbacks.empty())
1000
return Plugin::success();
1001
1002
+ assert(Callbacks.size() == ActionArgs.size() "Size mismatch");
1003
for (auto [Callback, ActionArg] : llvm::zip(Callbacks, ActionArgs)) {
1004
// Perform the action.
1005
if (Callback == memcpyAction) {
@@ -1010,7 +1011,7 @@ struct AMDGPUStreamTy {
1010
1011
} else if (Callback == releaseSignalAction) {
1012
if (auto Err = releaseSignalAction(&ActionArg))
1013
return Err;
- } else {
1014
+ } else if (Callback) {
1015
if (auto Err = Callback(ActionArg.CallbackArgs))
1016
1017
}
0 commit comments