From: Manman Ren Date: Mon, 9 Sep 2013 19:00:55 +0000 (+0000) Subject: Debug Info: Update isScope to make sure DIType is a scope and X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=473c1988639f5ac9edec7a8b2434c1b01b9b9ae0;p=platform%2Fupstream%2Fllvm.git Debug Info: Update isScope to make sure DIType is a scope and TAG_file_type is also a scope. llvm-svn: 190321 --- diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 5828a3f..d0667cd 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -246,11 +246,12 @@ bool DIDescriptor::isScope() const { case dwarf::DW_TAG_lexical_block: case dwarf::DW_TAG_subprogram: case dwarf::DW_TAG_namespace: + case dwarf::DW_TAG_file_type: return true; default: break; } - return false; + return isType(); } /// isTemplateTypeParameter - Return true if the specified tag is