Ensure AtomicExpr goes through SEMA checking after TreeTransform
authorErich Keane <erich.keane@intel.com>
Fri, 20 Sep 2019 19:17:31 +0000 (19:17 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 20 Sep 2019 19:17:31 +0000 (19:17 +0000)
commit830909b97a9a63959758f0b5e049ac172815d0db
treee75405975fd38271a24ba39b9a2d29b4b2a4472c
parent6a234677f4916fc647e463f058feeff73b131879
Ensure AtomicExpr goes through SEMA checking after TreeTransform

RebuildAtomicExpr was skipping doing semantic analysis which broke in
the cases where the expressions were not dependent. This resulted in the
ImplicitCastExpr from an array to a pointer being lost, causing a crash
in IR CodeGen.

Differential Revision: https://reviews.llvm.org/D67854

llvm-svn: 372422
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/TreeTransform.h
clang/test/AST/atomic-expr.cpp [new file with mode: 0644]