Index: clang/lib/Sema/SemaChecking.cpp =================================================================== --- clang/lib/Sema/SemaChecking.cpp +++ clang/lib/Sema/SemaChecking.cpp @@ -122,7 +122,7 @@ return S.Diag(range.getBegin(), diag::err_typecheck_call_too_many_args) << 0 /*function call*/ << desiredArgCount << argCount - << call->getArg(1)->getSourceRange(); + << range; } /// Check that the first argument to __builtin_annotation is an integer