From 550f5b09756692e2f47cb2d54b42ee9436b91c8d Mon Sep 17 00:00:00 2001 From: Bruno Ricci Date: Mon, 7 Jan 2019 13:39:26 +0000 Subject: [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 --- include/clang/AST/Stmt.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/clang/AST/Stmt.h') 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 { -- cgit v1.2.1