[PATCH] D36480: [LLVM] Change to Verifier to allow Fortran CHARACTER types in debug information

Eric Schweitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 8 12:09:22 PDT 2017


schweitz created this revision.
Herald added a subscriber: aprantl.

Adds DW_TAG_string_type as a valid tag type. This allows flang to generate the proper DWARF tag type for source-level CHARACTER variables without an assertion failure.


https://reviews.llvm.org/D36480

Files:
  ./lib/IR/Verifier.cpp


Index: ./lib/IR/Verifier.cpp      
===================================================================
--- ./lib/IR/Verifier.cpp      
+++ ./lib/IR/Verifier.cpp      
@@ -871,7 +871,8 @@
 
 void Verifier::visitDIBasicType(const DIBasicType &N) {
   AssertDI(N.getTag() == dwarf::DW_TAG_base_type ||
-               N.getTag() == dwarf::DW_TAG_unspecified_type,
+               N.getTag() == dwarf::DW_TAG_unspecified_type ||
+               N.getTag() == dwarf::DW_TAG_string_type,
            "invalid tag", &N);
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36480.110250.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170808/9680091f/attachment.bin>


More information about the llvm-commits mailing list