]> granicus.if.org Git - clang/commit
Move the null pointer constant check from Sema::CheckSingleInitializer/ActOnCallExpr...
authorSteve Naroff <snaroff@apple.com>
Tue, 27 Nov 2007 17:58:44 +0000 (17:58 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 27 Nov 2007 17:58:44 +0000 (17:58 +0000)
commit529a4ad63bc82474d7d78fc189c340a3773da8bc
tree598cd26466d6386d1d7222d7f65a705bb513b69a
parent7ee261c8e71f363d86461f4d1a37e3def354c976
Move the null pointer constant check from Sema::CheckSingleInitializer/ActOnCallExpr/CheckMessageArgumentTypes/ActOnReturnStmt to Sema::CheckSingleAssignmentConstraints. This makes sure all null pointer assignments are considered compatible.

Thanks to Seo Sanghyeon for the bug, follow-through, and patch!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44366 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/SemaDecl.cpp
Sema/SemaExpr.cpp
Sema/SemaStmt.cpp
test/Sema/assign-null.c [new file with mode: 0644]