From 3ed7903d27f0e7e0cd3a61c165d39eca70f3cff5 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 1 Dec 2011 04:53:19 +0000 Subject: Don't use a varargs convention for calls unprototyped functions where one of the arguments is an AVX vector. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145574 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGExpr.cpp') diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 2b24f5938d..60e0121745 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/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(FnType) && - !getTargetHooks().isNoProtoCallVariadic(FnType->getCallConv())) { + !getTargetHooks().isNoProtoCallVariadic(FnInfo)) { assert(cast(Callee->getType()->getContainedType(0)) ->isVarArg()); llvm::Type *CalleeTy = getTypes().GetFunctionType(FnInfo, false); -- cgit v1.2.3