diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-07-06 23:06:16 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-07-06 23:06:16 +0000 |
| commit | 3270582cebd5fef405115618abd2b50ba6bffc13 (patch) | |
| tree | d7bae0caf8da65bfa7bb8b1767ebc541e11b9f02 | |
| parent | 183096d0c45efd748bad599f13a33ac96a44f152 (diff) | |
| download | bcm5719-llvm-3270582cebd5fef405115618abd2b50ba6bffc13.tar.gz bcm5719-llvm-3270582cebd5fef405115618abd2b50ba6bffc13.zip | |
Check if it's a scope last, because several things are scopes.
llvm-svn: 159873
| -rw-r--r-- | llvm/lib/VMCore/DebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/DebugInfo.cpp b/llvm/lib/VMCore/DebugInfo.cpp index bb700a94817..1cecddb6da0 100644 --- a/llvm/lib/VMCore/DebugInfo.cpp +++ b/llvm/lib/VMCore/DebugInfo.cpp @@ -998,8 +998,6 @@ void DIDescriptor::print(raw_ostream &OS) const { if (this->isSubrange()) { DISubrange(DbgNode).printInternal(OS); - } else if (this->isScope()) { - DIScope(DbgNode).printInternal(OS); } else if (this->isCompileUnit()) { DICompileUnit(DbgNode).printInternal(OS); } else if (this->isFile()) { @@ -1020,6 +1018,8 @@ void DIDescriptor::print(raw_ostream &OS) const { DIVariable(DbgNode).printInternal(OS); } else if (this->isObjCProperty()) { DIObjCProperty(DbgNode).printInternal(OS); + } else if (this->isScope()) { + DIScope(DbgNode).printInternal(OS); } } |

