Skip to content

Commit 8af0eb5

Browse files
authored
Initialize uninitialized class members. (#2899)
1 parent 0332a1e commit 8af0eb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/SPIRV/libSPIRV/SPIRVInstruction.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4280,7 +4280,9 @@ class SPIRVUntypedPrefetchKHR : public SPIRVInstruction {
42804280
validate();
42814281
}
42824282

4283-
SPIRVUntypedPrefetchKHR() : SPIRVInstruction(OC) {
4283+
SPIRVUntypedPrefetchKHR()
4284+
: SPIRVInstruction(OC), PtrTy(SPIRVID_INVALID),
4285+
NumBytes(SPIRVID_INVALID) {
42844286
setHasNoId();
42854287
setHasNoType();
42864288
}

0 commit comments

Comments
 (0)