Skip to content

Commit 3752539

Browse files
committed
[SPIRV] Fix sanitizer-x86_64-linux-android/8085
The build failed because the cases covered all possibilities, so the default was not needed. I have removed the default case, and placed the llvm_unreachable after the switch. https://lab.llvm.org/buildbot/#/builders/186/builds/8085
1 parent 4244a91 commit 3752539

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ storageClassRequiresExplictLayout(SPIRV::StorageClass::StorageClass SC) {
8282
case SPIRV::StorageClass::DeviceOnlyINTEL:
8383
case SPIRV::StorageClass::HostOnlyINTEL:
8484
return false;
85-
default:
86-
llvm_unreachable("Unknown storage class");
87-
return false;
8885
}
86+
llvm_unreachable("Unknown storage class");
87+
return false;
8988
}
9089

9190
SPIRVGlobalRegistry::SPIRVGlobalRegistry(unsigned PointerSize)

0 commit comments

Comments
 (0)