Skip to content

Commit 666cda9

Browse files
committed
[CIR] Improve a couple assert messages
1 parent 512b4b5 commit 666cda9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenTypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ mlir::Type CIRGenTypes::convertType(QualType type) {
173173
case BuiltinType::Float:
174174
assert(&astContext.getFloatTypeSemantics(type) ==
175175
&llvm::APFloat::IEEEsingle() &&
176-
"ClangIR only supports float as IEEE 32-bit");
176+
"ClangIR NYI: 'float' in a format other than IEEE 32-bit");
177177
resultType = cgm.FloatTy;
178178
break;
179179
case BuiltinType::Double:
180180
assert(&astContext.getFloatTypeSemantics(type) ==
181181
&llvm::APFloat::IEEEdouble() &&
182-
"ClangIR only supports double as IEEE 64-bit");
182+
"ClangIR NYI: 'double' in a format other than IEEE 64-bit");
183183
resultType = cgm.DoubleTy;
184184
break;
185185
case BuiltinType::LongDouble:

0 commit comments

Comments
 (0)