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 4894170 commit 45219f3Copy full SHA for 45219f3
runtime/executor/method_meta.cpp
@@ -229,10 +229,11 @@ Result<int64_t> MethodMeta::memory_planned_buffer_size(size_t index) const {
229
}
230
231
bool MethodMeta::uses_backend(const char* backend_name) const {
232
+ ET_CHECK_MSG(backend_name, "backend name is null");
233
const auto delegates = s_plan_->delegates();
234
for (size_t i = 0; i < delegates->size(); i++) {
235
auto delegate = delegates->Get(i);
- if (strcmp(delegate->id()->c_str(), backend_name) == 0) {
236
+ if (std::strcmp(delegate->id()->c_str(), backend_name) == 0) {
237
return true;
238
239
0 commit comments