Skip to content

Commit 5c42c6c

Browse files
Update sycl/source/detail/device_global_map_entry.cpp
Co-authored-by: Steffen Larsen <[email protected]>
1 parent bd4e454 commit 5c42c6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/device_global_map_entry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ bool DeviceGlobalMapEntry::isAvailableInContext(const context_impl *CtxImpl) {
6060
}
6161

6262
bool DeviceGlobalMapEntry::isProfileCounter() {
63-
const std::string CounterPrefix = "__profc_";
64-
return MUniqueId.substr(0, CounterPrefix.size()) == CounterPrefix;
63+
constexpr std::string_view CounterPrefix = "__profc_";
64+
return std::string_view{MUniqueId}.substr(0, CounterPrefix.size()) == CounterPrefix;
6565
}
6666

6767
#ifdef _MSC_VER

0 commit comments

Comments
 (0)