[llvm] r224621 - Remove isSubroutineType test for isCompositeType, getTag() is enough.
Yaron Keren
yaron.keren at gmail.com
Fri Dec 19 14:15:09 PST 2014
Author: yrnkrn
Date: Fri Dec 19 16:15:09 2014
New Revision: 224621
URL: http://llvm.org/viewvc/llvm-project?rev=224621&view=rev
Log:
Remove isSubroutineType test for isCompositeType, getTag() is enough.
Modified:
llvm/trunk/lib/IR/DebugInfo.cpp
Modified: llvm/trunk/lib/IR/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=224621&r1=224620&r2=224621&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfo.cpp Fri Dec 19 16:15:09 2014
@@ -166,7 +166,7 @@ uint64_t DIExpression::getPieceSize() co
//===----------------------------------------------------------------------===//
bool DIDescriptor::isSubroutineType() const {
- return isCompositeType() && getTag() == dwarf::DW_TAG_subroutine_type;
+ return DbgNode && getTag() == dwarf::DW_TAG_subroutine_type;
}
bool DIDescriptor::isBasicType() const {
More information about the llvm-commits
mailing list