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)
commit58d2bb12ff546c6e5845fc87b554fcc276052a84
tree7e7661c776bc03bcf545ac4cdc0aa57f3bc04d0d
parentedc5f0917564bd332099debc410aa52345230e0a
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.

llvm-svn: 193606
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/builtins-arm-strex-rettype.c [new file with mode: 0644]