Fix ocltst test issue

Fix dumpImage() issue exposed on Win10.
It's called by internal compiler on Navi14

Change-Id: I693ffd45b6b03657822afdc872781901bc69b65d


[ROCm/clr commit: b74d120627]
This commit is contained in:
Tao Sang
2020-10-16 17:12:26 -04:00
committed by Tao Sang
parent 48aabb82bf
commit 6c7b785a53
+1 -1
View File
@@ -930,7 +930,7 @@ bool Elf::dumpImage(char** buff, size_t* len)
if (buff != nullptr && len != nullptr) {
std::ifstream is;
is.open(dumpFile); // open input file
is.open(dumpFile, std::ifstream::in | std::ifstream::binary); // open input file
if (!is.good()) {
LogElfError("failed in is.open(%s)", dumpFile.c_str());
return false;