aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-05-29 17:33:31 +0000
committerAdrian Prantl <aprantl@apple.com>2013-05-29 17:33:31 +0000
commit88c744083d6cf5f4810c1e9fe457a212bb24d432 (patch)
treece3c19e3e2374cce6ee6b97e7e3fc94d539713d9 /lib/IR
parent742671bf8e422aadcf3b7697a8844b9eb6f566f2 (diff)
downloadexternal_llvm-88c744083d6cf5f4810c1e9fe457a212bb24d432.zip
external_llvm-88c744083d6cf5f4810c1e9fe457a212bb24d432.tar.gz
external_llvm-88c744083d6cf5f4810c1e9fe457a212bb24d432.tar.bz2
Simplify logic by using the appropriate functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/DebugInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp
index 6a014ae..6843581 100644
--- a/lib/IR/DebugInfo.cpp
+++ b/lib/IR/DebugInfo.cpp
@@ -351,9 +351,8 @@ bool DIDescriptor::isImportedEntity() const {
DIType::DIType(const MDNode *N) : DIScope(N) {
if (!N) return;
- if (!isBasicType() && !isDerivedType() && !isCompositeType()) {
+ if (!isType())
DbgNode = 0;
- }
}
unsigned DIArray::getNumElements() const {