diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-13 21:47:32 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-13 21:47:32 +0000 |
commit | 4aa3fea8b13b91800c908f8e7d74fad96adba69a (patch) | |
tree | 52713ed62b71874cabdd00b934cb7dbb64a75665 /lib/DebugInfo/DWARFDebugInfoEntry.h | |
parent | 13b8d1e396bc802038332d894d78b999ec067069 (diff) | |
download | llvm-4aa3fea8b13b91800c908f8e7d74fad96adba69a.tar.gz llvm-4aa3fea8b13b91800c908f8e7d74fad96adba69a.tar.bz2 llvm-4aa3fea8b13b91800c908f8e7d74fad96adba69a.tar.xz |
Style & indentation tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugInfoEntry.h')
-rw-r--r-- | lib/DebugInfo/DWARFDebugInfoEntry.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/DebugInfo/DWARFDebugInfoEntry.h b/lib/DebugInfo/DWARFDebugInfoEntry.h index aa2b89dcbd..0b0a00cf4f 100644 --- a/lib/DebugInfo/DWARFDebugInfoEntry.h +++ b/lib/DebugInfo/DWARFDebugInfoEntry.h @@ -85,19 +85,16 @@ public: // We know we are kept in a vector of contiguous entries, so we know // our parent will be some index behind "this". ParentIdx = this - parent; - } - else + } else ParentIdx = 0; } void setSibling(DWARFDebugInfoEntryMinimal *sibling) { - if (sibling) - { + if (sibling) { // We know we are kept in a vector of contiguous entries, so we know // our sibling will be some index after "this". SiblingIdx = sibling - this; sibling->setParent(getParent()); - } - else + } else SiblingIdx = 0; } |