[llvm-commits] [llvm] r147781 - /llvm/trunk/lib/Analysis/DIBuilder.cpp
Devang Patel
dpatel at apple.com
Mon Jan 9 09:49:48 PST 2012
Author: dpatel
Date: Mon Jan 9 11:49:47 2012
New Revision: 147781
URL: http://llvm.org/viewvc/llvm-project?rev=147781&view=rev
Log:
Update language check. Do not ignore DW_LANG_Python.
Patch by Joe Groff!
Modified:
llvm/trunk/lib/Analysis/DIBuilder.cpp
Modified: llvm/trunk/lib/Analysis/DIBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DIBuilder.cpp?rev=147781&r1=147780&r2=147781&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DIBuilder.cpp (original)
+++ llvm/trunk/lib/Analysis/DIBuilder.cpp Mon Jan 9 11:49:47 2012
@@ -76,7 +76,8 @@
StringRef Directory, StringRef Producer,
bool isOptimized, StringRef Flags,
unsigned RunTimeVer) {
- assert (Lang <= dwarf::DW_LANG_D && Lang >= dwarf::DW_LANG_C89
+ assert ((Lang <= dwarf::DW_LANG_Python && Lang >= dwarf::DW_LANG_C89
+ || Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)
&& "Invalid Language tag");
assert (!Filename.empty()
&& "Unable to create compile unit without filename");
More information about the llvm-commits
mailing list