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 @@ -1984,7 +1984,8 @@ int32_t GenericPluginTy::supports_empty_images() {
1984
1984
int32_t GenericPluginTy::isPluginCompatible (StringRef Image) {
1985
1985
auto HandleError = [&](Error Err) -> bool {
1986
1986
[[maybe_unused]] std::string ErrStr = toString (std::move (Err));
1987
- DP (" Failure to check validity of image %p: %s" , Image, ErrStr.c_str ());
1987
+ DP (" Failure to check validity of image %p: %s" , Image.data (),
1988
+ ErrStr.c_str ());
1988
1989
return false ;
1989
1990
};
1990
1991
switch (identify_magic (Image)) {
@@ -2012,7 +2013,8 @@ int32_t GenericPluginTy::isPluginCompatible(StringRef Image) {
2012
2013
int32_t GenericPluginTy::isDeviceCompatible (int32_t DeviceId, StringRef Image) {
2013
2014
auto HandleError = [&](Error Err) -> bool {
2014
2015
[[maybe_unused]] std::string ErrStr = toString (std::move (Err));
2015
- DP (" Failure to check validity of image %p: %s" , Image, ErrStr.c_str ());
2016
+ DP (" Failure to check validity of image %p: %s" , Image.data (),
2017
+ ErrStr.c_str ());
2016
2018
return false ;
2017
2019
};
2018
2020
switch (identify_magic (Image)) {
You can’t perform that action at this time.
0 commit comments