[PATCH] D64423: [OpenMP] Simplify getFloatTypeSemantics
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 9 12:36:21 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL365545: [OpenMP] Simplify getFloatTypeSemantics (authored by MaskRay, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64423/new/
https://reviews.llvm.org/D64423
Files:
cfe/trunk/lib/AST/ASTContext.cpp
Index: cfe/trunk/lib/AST/ASTContext.cpp
===================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp
+++ cfe/trunk/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.208781.patch
Type: text/x-patch
Size: 994 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190709/7a2fad24/attachment.bin>
More information about the cfe-commits
mailing list