Skip to content

Commit 01f5b18

Browse files
authored
[spirv-to-ir-wrapper] Fix uninitialized file descriptor value (#5852)
Hit with static code analyzer scans
1 parent 9b84dd8 commit 01f5b18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/spirv-to-ir-wrapper/spirv-to-ir-wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static int copyInputToOutput() {
9090
}
9191

9292
static int createEmptyOutput() {
93-
int FD;
93+
int FD = 0;
9494
if (std::error_code EC = openFileForWrite(
9595
Output, FD, sys::fs::CD_CreateAlways, sys::fs::OF_None))
9696
return EC.value();

0 commit comments

Comments
 (0)