]> granicus.if.org Git - clang/commit
[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)
commit7599e11553153798750a453a01c54f8062f72521
tree2609211f85cccc340ab498dff874efd2a1b3b07d
parenta108cf8ff2131c70e449e1d28151bf50f8e6230a
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365545 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp