[PATCH] D63376: [clang] Small improvments after Adding APValue to ConstantExpr

Tyker via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 15 06:53:09 PDT 2019


Tyker created this revision.
Tyker added a reviewer: rsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

this patch has multiple small improvements related to the APValue in ConstantExpr.

changes:

- APValue in ConstantExpr are now cleaned up using ASTContext::addDestruction instead of there own system.
- ConstantExprBits Stores the ValueKind of the result beaing stored.
- VerifyIntegerConstantExpression now stores the evaluated value in ConstantExpr.
- the Constant Evaluator uses the stored value of ConstantExpr when available.


Repository:
  rC Clang

https://reviews.llvm.org/D63376

Files:
  clang/include/clang/AST/ASTContext.h
  clang/include/clang/AST/Expr.h
  clang/include/clang/AST/Stmt.h
  clang/include/clang/Sema/Sema.h
  clang/lib/AST/ASTContext.cpp
  clang/lib/AST/Expr.cpp
  clang/lib/AST/ExprConstant.cpp
  clang/lib/Sema/SemaDeclCXX.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/lib/Sema/SemaOverload.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63376.204914.patch
Type: text/x-patch
Size: 12181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190615/f3c6bf39/attachment.bin>


More information about the cfe-commits mailing list