[llvm-branch-commits] [llvm] a4e44a0 - [ClassicFlang] Fix for allowing string_type as a basic debug type

Bryan Chan via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 24 08:40:52 PDT 2020


Author: Eric Schweitz
Date: 2020-06-23T06:29:56-04:00
New Revision: a4e44a064c788ad80749020a195de0ce4f1b6cca

URL: https://github.com/llvm/llvm-project/commit/a4e44a064c788ad80749020a195de0ce4f1b6cca
DIFF: https://github.com/llvm/llvm-project/commit/a4e44a064c788ad80749020a195de0ce4f1b6cca.diff

LOG: [ClassicFlang] Fix for allowing string_type as a basic debug type

Cherry-picked eddca9f374bd7b4b4038909b609771cb2203f927.

Added: 
    

Modified: 
    llvm/lib/IR/Verifier.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 61707cc83504..7711a11b766d 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -905,7 +905,8 @@ void Verifier::visitDIEnumerator(const DIEnumerator &N) {
 
 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);
   AssertDI(!(N.isBigEndian() && N.isLittleEndian()) ,
             "has conflicting flags", &N);


        


More information about the llvm-branch-commits mailing list