[llvm] r207428 - Modify the assertion in DIBuilder.cpp to cover the DWARF 5 languages
Peter Collingbourne
peter at pcc.me.uk
Mon Apr 28 11:11:01 PDT 2014
Author: pcc
Date: Mon Apr 28 13:11:01 2014
New Revision: 207428
URL: http://llvm.org/viewvc/llvm-project?rev=207428&view=rev
Log:
Modify the assertion in DIBuilder.cpp to cover the DWARF 5 languages
Differential Revision: http://reviews.llvm.org/D3523
Modified:
llvm/trunk/lib/IR/DIBuilder.cpp
Modified: llvm/trunk/lib/IR/DIBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DIBuilder.cpp?rev=207428&r1=207427&r2=207428&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DIBuilder.cpp (original)
+++ llvm/trunk/lib/IR/DIBuilder.cpp Mon Apr 28 13:11:01 2014
@@ -104,7 +104,7 @@ DICompileUnit DIBuilder::createCompileUn
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() &&
More information about the llvm-commits
mailing list