[PATCH] D67924: [Sema] Fix the atomic expr rebuilding order.
Michael Liao via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 23 10:14:59 PDT 2019
hliao created this revision.
hliao added a reviewer: erichkeane.
Herald added subscribers: cfe-commits, jfb.
Herald added a project: clang.
hliao added a comment.
The current BuildAtomicExpr expects the arguments to be in the API order instead of the AST order. If RebuildAtomicExpr uses the same BuildAtomicExpr, it needs to ensure the order of arguments are in API order; otherwise, arguments (especially the one with memory order) will be misplaced.
- Rearrange the atomic expr order to the API order when rebuilding atomic expr during template instantiation.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D67924
Files:
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/TreeTransform.h
clang/test/AST/atomic-expr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67924.221363.patch
Type: text/x-patch
Size: 8544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190923/c048e736/attachment.bin>
More information about the cfe-commits
mailing list