summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-04-28 18:11:01 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-04-28 18:11:01 +0000
commit99a4b59b85c622eaa83677cd4bd92c8c7c663606 (patch)
tree47a79f53e54b18b0138d3ffa57c2e0b264854bd6
parent6426666f6561785d7d5a6d1904f6df11df655082 (diff)
downloadllvm-99a4b59b85c622eaa83677cd4bd92c8c7c663606.tar.gz
llvm-99a4b59b85c622eaa83677cd4bd92c8c7c663606.tar.bz2
llvm-99a4b59b85c622eaa83677cd4bd92c8c7c663606.tar.xz
Modify the assertion in DIBuilder.cpp to cover the DWARF 5 languages
Differential Revision: http://reviews.llvm.org/D3523 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207428 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/IR/DIBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp
index 09cf078a2d..8dd5165eb2 100644
--- a/lib/IR/DIBuilder.cpp
+++ b/lib/IR/DIBuilder.cpp
@@ -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() &&