[flang] ifdef to avoid warning about supposedly dead function

This commit is contained in:
Eric Schweitz 2020-07-09 16:08:45 -07:00
parent 8a8bb078a3
commit 9263e08251
1 changed files with 2 additions and 0 deletions

View File

@ -295,11 +295,13 @@ RecordType parseDerived(mlir::DialectAsmParser &parser, mlir::Location) {
return verifyDerived(parser, result, lenParamList, typeList);
}
#ifndef NDEBUG
// !fir.ptr<X> and !fir.heap<X> where X is !fir.ptr, !fir.heap, or !fir.ref
// is undefined and disallowed.
inline bool singleIndirectionLevel(mlir::Type ty) {
return !fir::isa_ref_type(ty);
}
#endif
} // namespace