[clang] d5d1cf0 - [NFC][Clang] Clean up VisitUnaryPlus by removing unused FP feature check (#101412)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 31 16:25:56 PDT 2024
Author: smanna12
Date: 2024-07-31T18:25:52-05:00
New Revision: d5d1cf05499ba9a0adc192c723f622fc13ef9c0b
URL: https://github.com/llvm/llvm-project/commit/d5d1cf05499ba9a0adc192c723f622fc13ef9c0b
DIFF: https://github.com/llvm/llvm-project/commit/d5d1cf05499ba9a0adc192c723f622fc13ef9c0b.diff
LOG: [NFC][Clang] Clean up VisitUnaryPlus by removing unused FP feature check (#101412)
This commit removes an unnecessary call to `E->hasStoredFPFeatures()`
within the `VisitUnaryPlus` function. The method's return value was not
being used, leading to a redundant operation. The removal of this line
streamlines the function and eliminates an unneeded check for stored
floating-point features.
Added:
Modified:
clang/lib/CodeGen/CGExprComplex.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 4d45f6d64c1cd..828a09856099a 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -649,7 +649,6 @@ ComplexPairTy ComplexExprEmitter::EmitCast(CastKind CK, Expr *Op,
ComplexPairTy ComplexExprEmitter::VisitUnaryPlus(const UnaryOperator *E,
QualType PromotionType) {
- E->hasStoredFPFeatures();
QualType promotionTy =
PromotionType.isNull()
? getPromotionType(E->getStoredFPFeaturesOrDefault(),
More information about the cfe-commits
mailing list