Properly propagate is_variadic.

This fixes a copy&paste error made when adapting to new clang API
which was promptly caught by the bots.
This commit is contained in:
Adrian Prantl 2019-11-08 09:52:58 -08:00
parent 59d3fbc227
commit 8204d9ff7e
1 changed files with 1 additions and 1 deletions

View File

@ -8639,7 +8639,7 @@ clang::ObjCMethodDecl *ClangASTContext::AddMethodToObjCObjectType(
return nullptr;
const bool isInstance = (name[0] == '-');
const bool isVariadic = false;
const bool isVariadic = is_variadic;
const bool isPropertyAccessor = false;
const bool isSynthesizedAccessorStub = false;
/// Force this to true because we don't have source locations.