Skip to content

Commit 2ff6f95

Browse files
committed
Fix canonicalization and alignment after merge
1 parent 34aad15 commit 2ff6f95

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3396,8 +3396,7 @@ checkBuiltinTemplateIdType(Sema &SemaRef, BuiltinTemplateDecl *BTD,
33963396
}
33973397

33983398
if (llvm::any_of(Converted, [](auto &C) { return C.isDependent(); }))
3399-
return Context.getCanonicalTemplateSpecializationType(TemplateName(BTD),
3400-
Converted);
3399+
return QualType();
34013400

34023401
uint64_t Opcode = Converted[0].getAsIntegral().getZExtValue();
34033402
uint64_t Size = Converted[1].getAsIntegral().getZExtValue();

clang/test/CodeGenHLSL/inline/SpirvType.alignment.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using Int = vk::SpirvType</* OpTypeInt */ 21, 4, 64, vk::Literal<vk::integral_constant<uint, 8>>, vk::Literal<vk::integral_constant<bool, false>>>;
66

7-
// CHECK: %struct.S = type <{ i32, [4 x i8], target("spirv.Type", target("spirv.Literal", 8), target("spirv.Literal", 0), 21, 4, 64), [8 x i8] }>
7+
// CHECK: %struct.S = type <{ i32, target("spirv.Type", target("spirv.Literal", 8), target("spirv.Literal", 0), 21, 4, 64), [4 x i8] }>
88
struct S {
99
int a;
1010
Int b;

clang/test/CodeGenHLSL/inline/SpirvType.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void main() {
4949
// CHECK: %words2 = alloca target("spirv.Type", target("spirv.Type", target("spirv.Literal", 32), target("spirv.Literal", 0), 21, 4, 32), target("spirv.IntegralConstant", i64, 5), 28, 0, 0), align 4
5050
ArrayInt words2;
5151

52-
// CHECK: %value = alloca %struct.S, align 4
52+
// CHECK: %value = alloca %struct.S, align 1
5353
S value;
5454

5555
// CHECK: %buffers2 = alloca target("spirv.Type", target("spirv.Image", float, 5, 2, 0, 0, 2, 0), target("spirv.IntegralConstant", i64, 4), 28, 0, 0), align 4

0 commit comments

Comments
 (0)