Skip to content

Commit 9bd59ec

Browse files
committed
Update IrContext.cpp
1 parent 6fba395 commit 9bd59ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backends/qualcomm/runtime/backends/irbackend/x86_64/IrContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using executorch::runtime::Error;
1919
Error IrContext::GetContextBinary(
2020
QnnExecuTorchContextBinary& qnn_executorch_context_binary) {
2121
// read Dlc and write to buffer
22-
auto dlc_name = GetGraphNames()[0] + ".dlc";
22+
std::string dlc_name = GetGraphNames()[0] + ".dlc";
2323
std::ifstream dlc_file(dlc_name, std::ios::binary | std::ios::ate);
2424
if (dlc_file.is_open()) {
2525
std::streamsize size = dlc_file.tellg();
@@ -34,7 +34,7 @@ Error IrContext::GetContextBinary(
3434
} else {
3535
QNN_EXECUTORCH_LOG_ERROR(
3636
"Unable to open dlc file %s for building QnnExecuTorchContextBinary",
37-
dlc_name);
37+
dlc_name.c_str());
3838
}
3939
return Error::Internal;
4040
}

0 commit comments

Comments
 (0)