[clang] [CIR] Fix Complex emit promotion for Div op (PR #156963)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 4 14:00:14 PDT 2025


================
@@ -749,6 +749,7 @@ mlir::Value ComplexExprEmitter::emitPromoted(const Expr *e,
       HANDLE_BINOP(Add)
       HANDLE_BINOP(Sub)
       HANDLE_BINOP(Mul)
+      HANDLE_BINOP(Div)
----------------
andykaylor wrote:

I don't understand what this is doing. The test you added compiles without this change, but produces different results. Can you explain what this changes?

https://github.com/llvm/llvm-project/pull/156963


More information about the cfe-commits mailing list