[PATCH] D113107: Support of expression granularity for _Float16.

Zahira Ammarguellat via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 18 12:06:50 PDT 2022


zahiraam added inline comments.


================
Comment at: clang/lib/CodeGen/CGExprComplex.cpp:613
+    result = EmitUnpromotion(promotionTy, E->getSubExpr()->getType(), result);
+  return result;
+}
----------------
rjmccall wrote:
> You should unpromote only if we're not in a promoted context, which is to say, only if the `PromotionType` that was passed in is null.
oh! right. The promotionTy is not even used in the function. Thanks.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113107/new/

https://reviews.llvm.org/D113107



More information about the cfe-commits mailing list