[PATCH] D64423: [OpenMP] Simplify getFloatTypeSemantics
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 9 08:55:40 PDT 2019
MaskRay created this revision.
MaskRay added a reviewer: ABataev.
Herald added subscribers: cfe-commits, jdoerfert, guansong.
Herald added a project: clang.
Repository:
rC Clang
https://reviews.llvm.org/D64423
Files:
lib/AST/ASTContext.cpp
Index: lib/AST/ASTContext.cpp
===================================================================
--- lib/AST/ASTContext.cpp
+++ lib/AST/ASTContext.cpp
@@ -1525,13 +1525,11 @@
case BuiltinType::Float: return Target->getFloatFormat();
case BuiltinType::Double: return Target->getDoubleFormat();
case BuiltinType::LongDouble:
- if (getLangOpts().OpenMP && getLangOpts().OpenMPIsDevice &&
- &Target->getLongDoubleFormat() != &AuxTarget->getLongDoubleFormat())
+ if (getLangOpts().OpenMP && getLangOpts().OpenMPIsDevice)
return AuxTarget->getLongDoubleFormat();
return Target->getLongDoubleFormat();
case BuiltinType::Float128:
- if (getLangOpts().OpenMP && getLangOpts().OpenMPIsDevice &&
- &Target->getFloat128Format() != &AuxTarget->getFloat128Format())
+ if (getLangOpts().OpenMP && getLangOpts().OpenMPIsDevice)
return AuxTarget->getFloat128Format();
return Target->getFloat128Format();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64423.208707.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190709/7d36dc38/attachment.bin>
More information about the cfe-commits
mailing list