diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-06-15 16:47:23 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-06-15 16:47:23 +0000 |
| commit | 7f26e26d0c424df277a231484190a7be84d28c3f (patch) | |
| tree | 032f7c4366eb695f89b50ecacd8a44d799ea6191 /lib/Analysis | |
| parent | 746c3b7ff4121a5c2ae68523e85fc557a0e9f491 (diff) | |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
| -rw-r--r-- | lib/Analysis/TargetLibraryInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/TargetLibraryInfo.cpp b/lib/Analysis/TargetLibraryInfo.cpp index 789b0396e0b..f70b438a06b 100644 --- a/lib/Analysis/TargetLibraryInfo.cpp +++ b/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: |
