[OpenMP] Simplify getFloatTypeSemantics
authorFangrui Song <maskray@google.com>
Tue, 9 Jul 2019 19:36:22 +0000 (19:36 +0000)
committerFangrui Song <maskray@google.com>
Tue, 9 Jul 2019 19:36:22 +0000 (19:36 +0000)
commit3fbd8fda9a02e8aed4c8723a80a0837e637392cc
tree190ea03182f3ce41412f9d348ec5948fd05942f2
parent2d739940466980bd07419a846e33a6b648978d40
[OpenMP] Simplify getFloatTypeSemantics

When the float point representations are the same on the host and on the target device,
(`&Target->getLongDoubleFormat() == &AuxTarget->getLongDoubleFormat()`),
we can just use `AuxTarget->getLongDoubleFormat()`.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D64423

llvm-svn: 365545
clang/lib/AST/ASTContext.cpp