[PATCH] D100015: [debug-info] make fortran CHARACTER(1) type as valid unsigned type
LiuChen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 28 00:53:21 PDT 2021
LiuChen3 added inline comments.
================
Comment at: llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp:180
+ if (isa<DIStringType>(Ty)) {
+ assert((Ty->getSizeInBits()) == 8 && "Not a valid unsigned type!");
+ return true;
----------------
Hi, @shchenz . This assertion make our testcase fail on X86 target. I am not familiar with this part so I have a question here: why the type here must be unsigned? Should this be something like "return Ty->getSizeInBits() == 8; " ?
Thanks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100015/new/
https://reviews.llvm.org/D100015
More information about the llvm-commits
mailing list