Skip to content

Commit cb95680

Browse files
Keenutss-perron
andauthored
Update llvm/lib/Target/SPIRV/SPIRVLegalizePointerLoad.cpp
Co-authored-by: Steven Perron <[email protected]>
1 parent 0ed4b57 commit cb95680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVLegalizePointerLoad.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
// by logical SPIR-V.
1414
//
1515
// This pass relies on the assign_ptr_type intrinsic to deduce the type of the
16-
// pointed values, must replace all occurences of `ptrcast`. This is why
17-
// unhandled cases are reported as unreachable: we MUST cover all cases.
16+
// pointee. All occurrences of `ptrcast` must be replaced because the lead to
17+
// invalid SPIR-V. Unhandled cases result in an error.
1818
//
1919
// 1. Loading the first element of an array
2020
//

0 commit comments

Comments
 (0)