Skip to content

Commit 404e7d8

Browse files
committed
Fix typo in var name
1 parent cd8321c commit 404e7d8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -583,20 +583,20 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value,
583583
cir::ComplexType complexType =
584584
mlir::dyn_cast<cir::ComplexType>(desiredType);
585585

586-
mlir::Type compelxElemTy = complexType.getElementType();
587-
if (isa<cir::IntType>(compelxElemTy)) {
586+
mlir::Type complexElemTy = complexType.getElementType();
587+
if (isa<cir::IntType>(complexElemTy)) {
588588
llvm::APSInt real = value.getComplexIntReal();
589589
llvm::APSInt imag = value.getComplexIntImag();
590590
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));
593593
}
594594

595595
llvm::APFloat real = value.getComplexFloatReal();
596596
llvm::APFloat imag = value.getComplexFloatImag();
597597
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));
600600
}
601601
case APValue::FixedPoint:
602602
case APValue::AddrLabelDiff:

0 commit comments

Comments
 (0)