This resolves https://bugs.llvm.org/show_bug.cgi?id=49872
SROA will create llvm.dbg.value to assign an unsigned integer to a variable with the type CHARACTER(1). For now, this dbg value will cause llc crash in AsmPrinter pass.
Differential D100015
[debug-info] make fortran CHARACTER(1) type as valid unsigned type shchenz on Apr 6 2021, 9:38 PM. Authored by
Details
This resolves https://bugs.llvm.org/show_bug.cgi?id=49872 SROA will create llvm.dbg.value to assign an unsigned integer to a variable with the type CHARACTER(1). For now, this dbg value will cause llc crash in AsmPrinter pass.
Diff Detail
Event Timeline
|
It would be cleaner to reject this in Verifier and make it part of the general expectations for LLVM IR metadata.