Skip to content

Commit d5d1cf0

Browse files
authored
[NFC][Clang] Clean up VisitUnaryPlus by removing unused FP feature check (llvm#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.
1 parent 1c66ef9 commit d5d1cf0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/lib/CodeGen/CGExprComplex.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ ComplexPairTy ComplexExprEmitter::EmitCast(CastKind CK, Expr *Op,
649649

650650
ComplexPairTy ComplexExprEmitter::VisitUnaryPlus(const UnaryOperator *E,
651651
QualType PromotionType) {
652-
E->hasStoredFPFeatures();
653652
QualType promotionTy =
654653
PromotionType.isNull()
655654
? getPromotionType(E->getStoredFPFeaturesOrDefault(),

0 commit comments

Comments
 (0)