summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorBruno Ricci <riccibrun@gmail.com>2018-11-13 17:56:44 +0000
committerBruno Ricci <riccibrun@gmail.com>2018-11-13 17:56:44 +0000
commita795e8012ec4f67978c9d1558f0f1f0589ebe79b (patch)
tree15463d5cc3bc1e3b200310a20bac619543735d6d /clang/lib
parent107d0a87565ac7f067e38b1f73866959cad6f52f (diff)
downloadbcm5719-llvm-a795e8012ec4f67978c9d1558f0f1f0589ebe79b.tar.gz
bcm5719-llvm-a795e8012ec4f67978c9d1558f0f1f0589ebe79b.zip
[AST][NFC] Pack DeclRefExpr
Move the SourceLocation to the bit-fields of Stmt + clang-format. This saves one pointer per DeclRefExpr but otherwise NFC. llvm-svn: 346770
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Expr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index c2351955ee1..564484ed03f 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -351,7 +351,8 @@ DeclRefExpr::DeclRefExpr(const ASTContext &Ctx,
const TemplateArgumentListInfo *TemplateArgs,
QualType T, ExprValueKind VK)
: Expr(DeclRefExprClass, T, VK, OK_Ordinary, false, false, false, false),
- D(D), Loc(NameInfo.getLoc()), DNLoc(NameInfo.getInfo()) {
+ D(D), DNLoc(NameInfo.getInfo()) {
+ DeclRefExprBits.Loc = NameInfo.getLoc();
DeclRefExprBits.HasQualifier = QualifierLoc ? 1 : 0;
if (QualifierLoc) {
new (getTrailingObjects<NestedNameSpecifierLoc>())
OpenPOWER on IntegriCloud