Skip to content

Commit 10cdc73

Browse files
NikitaRudenkoIntelAlexeySachkov
authored andcommitted
Fix incorrect check in dumpLLVM function in SPIRVReader.cpp
1 parent 54827e6 commit 10cdc73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SPIRV/SPIRVReader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static bool isOpenCLKernel(SPIRVFunction *BF) {
115115
static void dumpLLVM(Module *M, const std::string &FName) {
116116
std::error_code EC;
117117
raw_fd_ostream FS(FName, EC, sys::fs::F_None);
118-
if (EC) {
118+
if (!EC) {
119119
FS << *M;
120120
FS.close();
121121
}

0 commit comments

Comments
 (0)