summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-16 04:01:30 +0000
committerChris Lattner <sabre@nondot.org>2010-05-16 04:01:30 +0000
commitbb53efb016d205d0aeed9cef69c2db51b3f351fc (patch)
tree851d0eb4c2e35b5add85702947a64d83effd40e1 /clang/lib/Sema/SemaOverload.cpp
parent298e6b82eb3037c39fc75d082b87d7bca73743cf (diff)
downloadbcm5719-llvm-bb53efb016d205d0aeed9cef69c2db51b3f351fc.tar.gz
bcm5719-llvm-bb53efb016d205d0aeed9cef69c2db51b3f351fc.zip
fix rdar://7985267 - Don't emit an error about a non-pod argument
passed to va_start, it doesn't actually pass it. llvm-svn: 103899
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r--clang/lib/Sema/SemaOverload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index bf4e7f74ad9..15f19723f89 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -7054,7 +7054,7 @@ Sema::BuildCallToObjectOfClassType(Scope *S, Expr *Object,
// Promote the arguments (C99 6.5.2.2p7).
for (unsigned i = NumArgsInProto; i != NumArgs; i++) {
Expr *Arg = Args[i];
- IsError |= DefaultVariadicArgumentPromotion(Arg, VariadicMethod);
+ IsError |= DefaultVariadicArgumentPromotion(Arg, VariadicMethod, 0);
TheCall->setArg(i + 1, Arg);
}
}
OpenPOWER on IntegriCloud