]> granicus.if.org Git - clang/commit
Fix the atomics sema code to convert operands to the argument types
authorChris Lattner <sabre@nondot.org>
Fri, 8 May 2009 15:36:58 +0000 (15:36 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 May 2009 15:36:58 +0000 (15:36 +0000)
commite7ac0a94f1dee3fae9292eb8372962b6d70b3e0d
treee7166159934f4487a36f1ee341ceb232f3904c49
parent008fc73ac971e5d30c8710e37e1f5f8a843052f1
Fix the atomics sema code to convert operands to the argument types
of the underlying _N builtin, not the the type of the pointee of the
actual type.  This ensures that atomics involving pointers end up
using the correct integer type when they are resolved, avoiding
aborts in codegen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71218 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/CodeGen/atomic.c
test/Sema/builtins.c