[flang] Fix crash evaluating kind expression
If we fail to evaluate the kind expression we were getting an invalid optional reference. Instead, fail with an assert. This can happen if an intrinsic function is not folded, but that will be implemented eventually. Original-commit: flang-compiler/f18@3bdbfc34bb75e6585eea57aa3240c3c825fff704 Reviewed-on: https://github.com/flang-compiler/f18/pull/256 Tree-same-pre-rewrite: false
Loading
Please sign in to comment