summaryrefslogtreecommitdiff
path: root/include/clang/AST/Stmt.h
diff options
context:
space:
mode:
authorBruno Ricci <riccibrun@gmail.com>2019-01-07 13:39:26 +0000
committerBruno Ricci <riccibrun@gmail.com>2019-01-07 13:39:26 +0000
commit550f5b09756692e2f47cb2d54b42ee9436b91c8d (patch)
treedb3c974059475faeb4bb76f494435ad7792d4d42 /include/clang/AST/Stmt.h
parent84ee269c66965015f9e39a4b1005c81d1b174677 (diff)
downloadclang-550f5b09756692e2f47cb2d54b42ee9436b91c8d.tar.gz
[AST][NFC] Pack OpaqueValueExpr
Use the newly available space in the bit-fields of Stmt. This saves 1 pointer per OpaqueValueExpr. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/Stmt.h')
-rw-r--r--include/clang/AST/Stmt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h
index 9d8a297487..c83af51626 100644
--- a/include/clang/AST/Stmt.h
+++ b/include/clang/AST/Stmt.h
@@ -706,13 +706,16 @@ protected:
//===--- Clang Extensions bitfields classes ---===//
class OpaqueValueExprBitfields {
+ friend class ASTStmtReader;
friend class OpaqueValueExpr;
unsigned : NumExprBits;
- /// The OVE is a unique semantic reference to its source expressio if this
+ /// The OVE is a unique semantic reference to its source expression if this
/// bit is set to true.
unsigned IsUnique : 1;
+
+ SourceLocation Loc;
};
union {