]> granicus.if.org Git - clang/commit
Fixe bogus error for variable argument methods. Sema::ObjcGetTypeForMethodDefinition...
authorSteve Naroff <snaroff@apple.com>
Tue, 18 Dec 2007 03:41:15 +0000 (03:41 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 18 Dec 2007 03:41:15 +0000 (03:41 +0000)
commitb99a4a3630478946ca963d654e40a8d100890d64
treedce9bf70a14783b349d6c4a1a42be73cf117f6c9
parent222d2c8b7886e37ba22f0b25ac7a6552f7cc8492
Fixe bogus error for variable argument methods. Sema::ObjcGetTypeForMethodDefinition() wasn't preserving the isVariadic boolean. Another fix is to avoid synthsizing the function decl entirely, however this is a separate issue that I don't want to deal with now. Also added a FIXME to Sema::CheckFunctionCall(), which is currently emitting a bogus warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45146 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/SemaChecking.cpp
Sema/SemaType.cpp
test/Sema/va-method.m [new file with mode: 0644]