forked from OSchip/llvm-project
[flang] Fix error is Negation on integer
The minus sign was missing. Original-commit: flang-compiler/f18@5fa0a97de5 Reviewed-on: https://github.com/flang-compiler/f18/pull/238 Tree-same-pre-rewrite: false
This commit is contained in:
parent
1c856ac972
commit
d6b37b1967
|
@ -347,7 +347,7 @@ std::optional<Expr<SomeType>> Negation(
|
|||
messages.Say("BOZ literal cannot be negated"_err_en_US);
|
||||
return NoExpr();
|
||||
},
|
||||
[&](Expr<SomeInteger> &&x) { return Package(std::move(x)); },
|
||||
[&](Expr<SomeInteger> &&x) { return Package(-std::move(x)); },
|
||||
[&](Expr<SomeReal> &&x) { return Package(-std::move(x)); },
|
||||
[&](Expr<SomeComplex> &&x) { return Package(-std::move(x)); },
|
||||
[&](Expr<SomeCharacter> &&x) {
|
||||
|
|
Loading…
Reference in New Issue