diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-05-01 21:55:21 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-05-01 21:55:21 +0000 |
commit | 7e740bd36772aae16b5cc5e605998ccc5eaf26db (patch) | |
tree | 966953c037e31e2c44bf7a62a360e524ac5bb8f6 /lib/AST/Expr.cpp | |
parent | cb66cff8fdf641f57f85dedb515a5f3240e3a9bb (diff) |
Several cosmetic changes, no functionality changed.
Mostly trailing whitespace so that me editor nuking it doesn't muddy the
waters of subsequent commits that do change functionality.
Also nukes a stray statement that was harmless but redundant that
I introduced in r130666.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index cd5a63aab5..a4365f1c44 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -281,11 +281,8 @@ DeclRefExpr::DeclRefExpr(NestedNameSpecifierLoc QualifierLoc, : Expr(DeclRefExprClass, T, VK, OK_Ordinary, false, false, false), D(D), Loc(NameLoc) { DeclRefExprBits.HasQualifier = QualifierLoc ? 1 : 0; - if (QualifierLoc) { - DeclRefExprBits.HasQualifier = 1; - NameQualifier *NQ = getNameQualifier(); - NQ->QualifierLoc = QualifierLoc; - } + if (QualifierLoc) + getNameQualifier().QualifierLoc = QualifierLoc; DeclRefExprBits.HasExplicitTemplateArgs = TemplateArgs ? 1 : 0; if (TemplateArgs) { @@ -302,10 +299,8 @@ DeclRefExpr::DeclRefExpr(NestedNameSpecifierLoc QualifierLoc, : Expr(DeclRefExprClass, T, VK, OK_Ordinary, false, false, false), D(D), Loc(NameInfo.getLoc()), DNLoc(NameInfo.getInfo()) { DeclRefExprBits.HasQualifier = QualifierLoc ? 1 : 0; - if (QualifierLoc) { - NameQualifier *NQ = getNameQualifier(); - NQ->QualifierLoc = QualifierLoc; - } + if (QualifierLoc) + getNameQualifier().QualifierLoc = QualifierLoc; DeclRefExprBits.HasExplicitTemplateArgs = TemplateArgs ? 1 : 0; if (TemplateArgs) |