Skip to content

Commit 81e1c23

Browse files
author
Matt Davis
committed
[builtins] Fix a broken build by removing a ScalableVecArgument case.
The following upstream commit removed the ScalableVecArgument: https://reviews.llvm.org/D80107 I've remove that case from IntrinsicTypeDecoder::decodeImmediate() The aforementioned patch also describes vector widths in terms of ElementCounts, and not unsigned ints. I've updated an access to the vector width to make use of the ElementCount representation via access of the Min member.
1 parent 6c624bb commit 81e1c23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/AST/Builtins.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,6 @@ Type IntrinsicTypeDecoder::decodeImmediate() {
17451745
case IITDescriptor::ExtendArgument:
17461746
case IITDescriptor::TruncArgument:
17471747
case IITDescriptor::HalfVecArgument:
1748-
case IITDescriptor::ScalableVecArgument:
17491748
case IITDescriptor::VarArg:
17501749
case IITDescriptor::Token:
17511750
case IITDescriptor::VecElementArgument:
@@ -1774,7 +1773,7 @@ Type IntrinsicTypeDecoder::decodeImmediate() {
17741773
case IITDescriptor::Vector: {
17751774
Type eltType = decodeImmediate();
17761775
if (!eltType) return Type();
1777-
return makeVector(eltType, D.Vector_Width);
1776+
return makeVector(eltType, D.Vector_Width.Min);
17781777
}
17791778

17801779
// A pointer to an immediate type.

0 commit comments

Comments
 (0)