Skip to content

Commit

Permalink
Update tools/clang/lib/SPIRV/LowerTypeVisitor.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Gauër <github@keenuts.net>
  • Loading branch information
s-perron and Keenuts committed Sep 12, 2024
1 parent 1000f93 commit e2ab4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/clang/lib/SPIRV/LowerTypeVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ const SpirvType *LowerTypeVisitor::getSpirvPointerFromInlineSpirvType(
ArrayRef<TemplateArgument> args, SpirvLayoutRule rule,
Optional<bool> isRowMajor, SourceLocation location) {

assert(args.size() == 2 && "OpTypePoint requires exactly 2 arguments.");
assert(args.size() == 2 && "OpTypePointer requires exactly 2 arguments.");
QualType scLiteralType = args[0].getAsType();
SpirvConstant *constant = nullptr;
if (!getVkIntegralConstantValue(scLiteralType, constant, location) ||
Expand Down

0 comments on commit e2ab4d5

Please sign in to comment.