[PATCH] D64423: [OpenMP] Simplify getFloatTypeSemantics
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 9 12:35:42 PDT 2019
MaskRay updated this revision to Diff 208780.
MaskRay edited the summary of this revision.
MaskRay added a comment.
Update description
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64423/new/
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.208780.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190709/6da20cd0/attachment.bin>
More information about the cfe-commits
mailing list