@@ -923,7 +923,7 @@ CIRGenFunction::emitArrayLength(const clang::ArrayType *origArrayType,
923923 return builder.getConstInt (*currSrcLoc, SizeTy, countFromCLAs);
924924}
925925
926- // TODO(cir): most part of this function can be shared between CIRGen
926+ // TODO(cir): Most of this function can be shared between CIRGen
927927// and traditional LLVM codegen
928928void CIRGenFunction::emitVariablyModifiedType (QualType type) {
929929 assert (type->isVariablyModifiedType () &&
@@ -942,15 +942,16 @@ void CIRGenFunction::emitVariablyModifiedType(QualType type) {
942942 case Type::HLSLAttributedResource:
943943 case Type::HLSLInlineSpirv:
944944 case Type::PredefinedSugar:
945- llvm_unreachable ( " NYI " );
945+ cgm. errorNYI ( " CIRGenFunction::emitVariablyModifiedType " );
946946
947947#define TYPE (Class, Base )
948948#define ABSTRACT_TYPE (Class, Base )
949949#define NON_CANONICAL_TYPE (Class, Base )
950950#define DEPENDENT_TYPE (Class, Base ) case Type::Class:
951951#define NON_CANONICAL_UNLESS_DEPENDENT_TYPE (Class, Base )
952952#include " clang/AST/TypeNodes.inc"
953- llvm_unreachable (" unexpected dependent type!" );
953+ llvm_unreachable (
954+ " dependent type must be resolved before the CIR codegen" );
954955
955956 // These types are never variably-modified.
956957 case Type::Builtin:
0 commit comments