diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:46:52 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:46:52 +0000 | 
| commit | 6b3f41ed88e8e440e11a4fbf20b6600529f80049 (patch) | |
| tree | 928b056f24a634d628c80238dbbf10d41b1a71d5 /lib/Transforms/Utils/SimplifyLibCalls.cpp | |
| parent | c46e6a5940c50058e00c0c5f9123fd82e338d29a (diff) | |
Notes
Diffstat (limited to 'lib/Transforms/Utils/SimplifyLibCalls.cpp')
| -rw-r--r-- | lib/Transforms/Utils/SimplifyLibCalls.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/lib/Transforms/Utils/SimplifyLibCalls.cpp b/lib/Transforms/Utils/SimplifyLibCalls.cpp index 9e71d746de349..1de579ed41b09 100644 --- a/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -1450,11 +1450,11 @@ static void insertSinCosCall(IRBuilder<> &B, Function *OrigCallee, Value *Arg,      // x86_64 can't use {float, float} since that would be returned in both      // xmm0 and xmm1, which isn't what a real struct would do.      ResTy = T.getArch() == Triple::x86_64 -    ? static_cast<Type *>(VectorType::get(ArgTy, 2)) -    : static_cast<Type *>(StructType::get(ArgTy, ArgTy, nullptr)); +                ? static_cast<Type *>(VectorType::get(ArgTy, 2)) +                : static_cast<Type *>(StructType::get(ArgTy, ArgTy));    } else {      Name = "__sincospi_stret"; -    ResTy = StructType::get(ArgTy, ArgTy, nullptr); +    ResTy = StructType::get(ArgTy, ArgTy);    }    Module *M = OrigCallee->getParent(); | 
