forked from OSchip/llvm-project
[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:
parent
562b067439
commit
cdf4ef4962
|
@ -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))};
|
||||
|
|
Loading…
Reference in New Issue