Skip to content

Commit 3746b60

Browse files
committed
Add khr as an option.
1 parent 20ab96a commit 3746b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/HLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ SmallString<1024> getSpirvExtArg(ArrayRef<std::string> SpvExtensionArgs) {
250250
}
251251

252252
bool isValidSPIRVExtensionName(const std::string &str) {
253-
std::regex pattern("dxc|DXC|KHR|SPV_[a-zA-Z0-9_]+");
253+
std::regex pattern("dxc|DXC|khr|KHR|SPV_[a-zA-Z0-9_]+");
254254
return std::regex_match(str, pattern);
255255
}
256256

0 commit comments

Comments
 (0)