aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-12-01 04:53:19 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-12-01 04:53:19 +0000
commitf37bd2f2f1dbea7328d4faacd8040399913f44c1 (patch)
tree1b79f69ccce03dcf07f1c1d599815bccfb64526b /clang/lib/CodeGen/CGExpr.cpp
parentd61887dd0a2b20dd7a013b0fe2c195266407cedb (diff)
downloadllvm-f37bd2f2f1dbea7328d4faacd8040399913f44c1.zip
llvm-f37bd2f2f1dbea7328d4faacd8040399913f44c1.tar.gz
llvm-f37bd2f2f1dbea7328d4faacd8040399913f44c1.tar.bz2
Don't use a varargs convention for calls unprototyped functions where one of the arguments is an AVX vector.
llvm-svn: 145574
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 2b24f59..60e0121 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -2458,7 +2458,7 @@ RValue CodeGenFunction::EmitCall(QualType CalleeType, llvm::Value *Callee,
// call. The way we make this work is to cast to the exact type
// of the promoted arguments.
if (isa<FunctionNoProtoType>(FnType) &&
- !getTargetHooks().isNoProtoCallVariadic(FnType->getCallConv())) {
+ !getTargetHooks().isNoProtoCallVariadic(FnInfo)) {
assert(cast<llvm::FunctionType>(Callee->getType()->getContainedType(0))
->isVarArg());
llvm::Type *CalleeTy = getTypes().GetFunctionType(FnInfo, false);