Skip to content

Commit d39324e

Browse files
[SPIR-V] Update submodules (#7029)
Update submodules in preparation for release.
1 parent a03a77f commit d39324e

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

external/SPIRV-Tools

Submodule SPIRV-Tools updated 87 files

tools/clang/lib/SPIRV/EmitVisitor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ void EmitVisitor::emitDebugLine(spv::Op op, const SourceLocation &loc,
385385
debugColumnEnd = columnEnd;
386386
}
387387

388+
if (columnEnd < columnStart) {
389+
columnEnd = columnStart = 0;
390+
}
391+
388392
curInst.clear();
389393
if (!spvOptions.debugInfoVulkan) {
390394
curInst.push_back(static_cast<uint32_t>(spv::Op::OpLine));

tools/clang/test/CodeGenSPIRV/shader.debug.line.composite.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void main() {
6060
// CHECK: DebugLine [[src]] %uint_46 %uint_46 %uint_12 %uint_12
6161
// CHECK-NEXT: OpConvertFToS %int
6262
// CHECK-NEXT: OpConvertFToS %int
63-
// CHECK: DebugLine [[src]] %uint_46 %uint_65 %uint_12 %uint_3
63+
// CHECK: DebugLine [[src]] %uint_46 %uint_65 %uint_0 %uint_0
6464
// CHECK: OpCompositeConstruct %v4int
6565
};
6666

0 commit comments

Comments
 (0)