File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -624,9 +624,9 @@ void LLVMToSPIRV::transVectorComputeMetadata(Function *F) {
624
624
if (Attrs.hasAttribute (AttributeList::ReturnIndex,
625
625
kVCMetadata ::VCSingleElementVector)) {
626
626
auto *RT = BF->getType ();
627
- assert (RT->isTypeBool () || RT->isTypeFloat () || RT->isTypeInt () ||
628
- RT->isTypePointer () &&
629
- " This decoration is valid only for Scalar or Pointer types" );
627
+ assert (( RT->isTypeBool () || RT->isTypeFloat () || RT->isTypeInt () ||
628
+ RT->isTypePointer () ) &&
629
+ " This decoration is valid only for Scalar or Pointer types" );
630
630
BF->addDecorate (DecorationSingleElementVectorINTEL);
631
631
}
632
632
@@ -643,9 +643,9 @@ void LLVMToSPIRV::transVectorComputeMetadata(Function *F) {
643
643
}
644
644
if (Attrs.hasAttribute (ArgNo + 1 , kVCMetadata ::VCSingleElementVector)) {
645
645
auto *AT = BA->getType ();
646
- assert (AT->isTypeBool () || AT->isTypeFloat () || AT->isTypeInt () ||
647
- AT->isTypePointer () &&
648
- " This decoration is valid only for Scalar or Pointer types" );
646
+ assert (( AT->isTypeBool () || AT->isTypeFloat () || AT->isTypeInt () ||
647
+ AT->isTypePointer () ) &&
648
+ " This decoration is valid only for Scalar or Pointer types" );
649
649
BA->addDecorate (DecorationSingleElementVectorINTEL);
650
650
}
651
651
}
You can’t perform that action at this time.
0 commit comments