PR14772: Support constant expression evaluation for _Atomic types.
* Treat _Atomic(T) as a literal type if T is a literal type. * Evaluate expressions of this type properly. * Fix a lurking bug where we built completely bogus ASTs for converting to _Atomic types in C++ in some cases, caught by the tests for this change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182541 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/AST/ExprConstant.cpp 64 additions, 14 deletionslib/AST/ExprConstant.cpp
- lib/AST/Type.cpp 4 additions, 0 deletionslib/AST/Type.cpp
- lib/Sema/SemaExprCXX.cpp 16 additions, 6 deletionslib/Sema/SemaExprCXX.cpp
- test/SemaCXX/constant-expression-cxx11.cpp 25 additions, 0 deletionstest/SemaCXX/constant-expression-cxx11.cpp
Loading
Please register or sign in to comment