@@ -583,20 +583,20 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value,
583
583
cir::ComplexType complexType =
584
584
mlir::dyn_cast<cir::ComplexType>(desiredType);
585
585
586
- mlir::Type compelxElemTy = complexType.getElementType ();
587
- if (isa<cir::IntType>(compelxElemTy )) {
586
+ mlir::Type complexElemTy = complexType.getElementType ();
587
+ if (isa<cir::IntType>(complexElemTy )) {
588
588
llvm::APSInt real = value.getComplexIntReal ();
589
589
llvm::APSInt imag = value.getComplexIntImag ();
590
590
return builder.getAttr <cir::ConstComplexAttr>(
591
- complexType, builder.getAttr <cir::IntAttr>(compelxElemTy , real),
592
- builder.getAttr <cir::IntAttr>(compelxElemTy , imag));
591
+ complexType, builder.getAttr <cir::IntAttr>(complexElemTy , real),
592
+ builder.getAttr <cir::IntAttr>(complexElemTy , imag));
593
593
}
594
594
595
595
llvm::APFloat real = value.getComplexFloatReal ();
596
596
llvm::APFloat imag = value.getComplexFloatImag ();
597
597
return builder.getAttr <cir::ConstComplexAttr>(
598
- complexType, builder.getAttr <cir::FPAttr>(compelxElemTy , real),
599
- builder.getAttr <cir::FPAttr>(compelxElemTy , imag));
598
+ complexType, builder.getAttr <cir::FPAttr>(complexElemTy , real),
599
+ builder.getAttr <cir::FPAttr>(complexElemTy , imag));
600
600
}
601
601
case APValue::FixedPoint:
602
602
case APValue::AddrLabelDiff:
0 commit comments