ARM: fix AST for __builtin_arm_strex call
authorTim Northover <tnorthover@apple.com>
Tue, 29 Oct 2013 12:32:58 +0000 (12:32 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 29 Oct 2013 12:32:58 +0000 (12:32 +0000)
commita6306fc4b03672f7ecc0ae43d2620a0fc36764e9
treec18f1d584ce9380188176b868f525ea40b4daff9
parent52af94453e30d2e9d0f4b6a208c8d4c3ff7c85a9
ARM: fix AST for __builtin_arm_strex call

The AST was constructed so that this builtin returned the default BoolTy and
since I'd opted for custom SemaChecking, I should have set it properly at that
point.

This caused an assertion failure when the types didn't match up with what we
generated. This makes it return an IntTy, which is as good as anything.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193606 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/builtins-arm-strex-rettype.c [new file with mode: 0644]