File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
offload/plugins-nextgen/common/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1714,7 +1714,8 @@ int32_t GenericPluginTy::is_initialized() const { return Initialized; }
1714
1714
int32_t GenericPluginTy::isPluginCompatible (StringRef Image) {
1715
1715
auto HandleError = [&](Error Err) -> bool {
1716
1716
[[maybe_unused]] std::string ErrStr = toString (std::move (Err));
1717
- DP (" Failure to check validity of image %p: %s" , Image, ErrStr.c_str ());
1717
+ DP (" Failure to check validity of image %p: %s" , Image.data (),
1718
+ ErrStr.c_str ());
1718
1719
return false ;
1719
1720
};
1720
1721
switch (identify_magic (Image)) {
@@ -1742,7 +1743,8 @@ int32_t GenericPluginTy::isPluginCompatible(StringRef Image) {
1742
1743
int32_t GenericPluginTy::isDeviceCompatible (int32_t DeviceId, StringRef Image) {
1743
1744
auto HandleError = [&](Error Err) -> bool {
1744
1745
[[maybe_unused]] std::string ErrStr = toString (std::move (Err));
1745
- DP (" Failure to check validity of image %p: %s" , Image, ErrStr.c_str ());
1746
+ DP (" Failure to check validity of image %p: %s" , Image.data (),
1747
+ ErrStr.c_str ());
1746
1748
return false ;
1747
1749
};
1748
1750
switch (identify_magic (Image)) {
You can’t perform that action at this time.
0 commit comments