Skip to content

Commit b0ddbfb

Browse files
authored
[clang][SPIR-V] Set AS for the SPIR-V logical triple (#88939)
This was missed in #88455, causing most of the .hlsl to SPIR-V tests to fail (such as clang\test\Driver\hlsl-lang-targets-spirv.hlsl)
1 parent 3eff86f commit b0ddbfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Basic/Targets/SPIR.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class LLVM_LIBRARY_VISIBILITY SPIRVTargetInfo : public BaseSPIRVTargetInfo {
315315
// SPIR-V IDs are represented with a single 32-bit word.
316316
SizeType = TargetInfo::UnsignedInt;
317317
resetDataLayout("e-i64:64-v16:16-v24:32-v32:32-v48:64-"
318-
"v96:128-v192:256-v256:256-v512:512-v1024:1024");
318+
"v96:128-v192:256-v256:256-v512:512-v1024:1024-G1");
319319
}
320320

321321
void getTargetDefines(const LangOptions &Opts,

0 commit comments

Comments
 (0)