Modify the assertion in DIBuilder.cpp to cover the DWARF 5 languages
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 28 Apr 2014 18:11:01 +0000 (18:11 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 28 Apr 2014 18:11:01 +0000 (18:11 +0000)
Differential Revision: http://reviews.llvm.org/D3523

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207428 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DIBuilder.cpp

index 09cf078..8dd5165 100644 (file)
@@ -104,7 +104,7 @@ DICompileUnit DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename,
                                            StringRef SplitName,
                                            DebugEmissionKind Kind) {
 
-  assert(((Lang <= dwarf::DW_LANG_Python && Lang >= dwarf::DW_LANG_C89) ||
+  assert(((Lang <= dwarf::DW_LANG_OCaml && Lang >= dwarf::DW_LANG_C89) ||
           (Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)) &&
          "Invalid Language tag");
   assert(!Filename.empty() &&