Skip to content

Commit 3c6c5c7

Browse files
committed
Fix MSVC "not all control paths return a value" warning. NFCI.
1 parent edf2131 commit 3c6c5c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ storageClassRequiresExplictLayout(SPIRV::StorageClass::StorageClass SC) {
8383
case SPIRV::StorageClass::HostOnlyINTEL:
8484
return false;
8585
}
86+
llvm_unreachable("Unknown SPIRV::StorageClass enum");
8687
}
8788

8889
SPIRVGlobalRegistry::SPIRVGlobalRegistry(unsigned PointerSize)

0 commit comments

Comments
 (0)