aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-03-29 17:58:59 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-03-29 17:58:59 +0000
commit2ebb98a78471f2039af4321bae657e7daacc2a62 (patch)
treeb69c8292b009f3c5c50e728f2e2fae47404231ea /lib/Sema/SemaChecking.cpp
parent297976d3dc9a5c402b52c734dc06d69f2f987e1c (diff)
Pass parameters in the correct order when assembling an AtomicExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r--lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index 7ab05c41f7..0e2eb3c701 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -637,8 +637,8 @@ Sema::SemaAtomicOpsOverloaded(ExprResult TheCallResult, AtomicExpr::AtomicOp Op)
} else {
SubExprs.push_back(TheCall->getArg(3)); // Order
SubExprs.push_back(TheCall->getArg(1)); // Val1
- SubExprs.push_back(TheCall->getArg(2)); // Val2
SubExprs.push_back(TheCall->getArg(4)); // OrderFail
+ SubExprs.push_back(TheCall->getArg(2)); // Val2
}
return Owned(new (Context) AtomicExpr(TheCall->getCallee()->getLocStart(),