[flang] Fix INTGER**COMPLEX regression introduced by PR 858

Fix bad copy past that had introduced an unitialized value use.

Original-commit: flang-compiler/f18@9a84bcb9ac
Reviewed-on: https://github.com/flang-compiler/f18/pull/865
This commit is contained in:
Jean Perier 2019-12-10 01:21:50 -08:00
parent 562b067439
commit cdf4ef4962
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ std::optional<Expr<SomeType>> MixedComplexRight(
} else if (defaultRealKind != 666) { // dodge unused parameter warning
// x / (a,b) -> (x,0) / (a,b)
if constexpr (LCAT == TypeCategory::Integer) {
Expr<SomeComplex> zx{ConvertTo(zx, std::move(irx))};
Expr<SomeComplex> zx{ConvertTo(zy, std::move(irx))};
return Package(PromoteAndCombine<OPR>(std::move(zx), std::move(zy)));
} else {
Expr<SomeComplex> zx{PromoteRealToComplex(std::move(irx))};