diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-12-01 04:53:19 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-12-01 04:53:19 +0000 |
| commit | 3ed7903d27f0e7e0cd3a61c165d39eca70f3cff5 (patch) | |
| tree | ee4cb54618b682abe19d91844ce620feadcc901e /lib/CodeGen/CGExpr.cpp | |
| parent | 996e6e564af7483e2d5e0b70df5fdb9f79ec4b5a (diff) | |
| download | clang-3ed7903d27f0e7e0cd3a61c165d39eca70f3cff5.tar.gz clang-3ed7903d27f0e7e0cd3a61c165d39eca70f3cff5.tar.bz2 clang-3ed7903d27f0e7e0cd3a61c165d39eca70f3cff5.tar.xz | |
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
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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); |
