Skip to content

Commit b91ccb8

Browse files
maarquitos14jsji
authored andcommitted
Initialize uninitialized class members. (#2899)
Original commit: KhronosGroup/SPIRV-LLVM-Translator@8af0eb5e9f537c0
1 parent 65c532d commit b91ccb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm-spirv/lib/SPIRV/libSPIRV/SPIRVInstruction.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4255,7 +4255,9 @@ class SPIRVUntypedPrefetchKHR : public SPIRVInstruction {
42554255
validate();
42564256
}
42574257

4258-
SPIRVUntypedPrefetchKHR() : SPIRVInstruction(OC) {
4258+
SPIRVUntypedPrefetchKHR()
4259+
: SPIRVInstruction(OC), PtrTy(SPIRVID_INVALID),
4260+
NumBytes(SPIRVID_INVALID) {
42594261
setHasNoId();
42604262
setHasNoType();
42614263
}

0 commit comments

Comments
 (0)