summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitb2f70c7a4ba00a6d9a2e9a4d76e9e62d573ee032 (patch)
treebbc8a1533bf586ebf2842479c9c1c3a86aa6cb28 /llvm/lib
parent47d387c9ec59e93db59f2fd79f3106fa5910c7cc (diff)
downloadbcm5719-llvm-b2f70c7a4ba00a6d9a2e9a4d76e9e62d573ee032.tar.gz
bcm5719-llvm-b2f70c7a4ba00a6d9a2e9a4d76e9e62d573ee032.zip
Modify the assertion in DIBuilder.cpp to cover the DWARF 5 languages
Differential Revision: http://reviews.llvm.org/D3523 llvm-svn: 207428
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/DIBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index 09cf078a2d9..8dd5165eb29 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/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() &&
OpenPOWER on IntegriCloud