[PATCH] Modify the assertion in DIBuilder.cpp to cover the DWARF 5 languages

Peter Collingbourne peter at pcc.me.uk
Mon May 19 07:23:29 PDT 2014


Closed by commit rL207428 (authored by @pcc).

http://reviews.llvm.org/D3523

Files:
  llvm/trunk/lib/IR/DIBuilder.cpp

Index: llvm/trunk/lib/IR/DIBuilder.cpp
===================================================================
--- llvm/trunk/lib/IR/DIBuilder.cpp
+++ llvm/trunk/lib/IR/DIBuilder.cpp
@@ -104,7 +104,7 @@
                                            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() &&
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3523.9543.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140519/22094883/attachment.bin>


More information about the llvm-commits mailing list