summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-15 16:47:23 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-15 16:47:23 +0000
commitb62692e2e0f38db49077a550b7f16931be492ead (patch)
treeb4e7ce952b3a22a675c749efeecacace3e58dd19 /llvm/lib
parent54566a0e9a73e5fd01cc7b43f5bd64d39a4ae887 (diff)
downloadbcm5719-llvm-b62692e2e0f38db49077a550b7f16931be492ead.tar.gz
bcm5719-llvm-b62692e2e0f38db49077a550b7f16931be492ead.zip
[TargetLibraryInfo] Teach isValidProtoForLibFunc about tan
We would fail to validate the type of the tan function which would cause downstream users of isValidProtoForLibFunc to assert. This fixes PR28143. llvm-svn: 272802
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/TargetLibraryInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
index 789b0396e0b..f70b438a06b 100644
--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
+++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
@@ -897,6 +897,9 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy,
case LibFunc::cos:
case LibFunc::cosf:
case LibFunc::cosl:
+ case LibFunc::tan:
+ case LibFunc::tanf:
+ case LibFunc::tanl:
case LibFunc::exp:
case LibFunc::expf:
case LibFunc::expl:
OpenPOWER on IntegriCloud