[IR] Use UnaryOperator::CreateFNeg in NoFolder::createFNeg

If IRBuilder is constructed using the NoFolder constant folder, we should use the Unary FNeg to match the non-constant part of IRBuilder.

Differential Revision: https://reviews.llvm.org/D69396
This commit is contained in:
Craig Topper 2019-10-28 11:01:16 -07:00
parent 70f5aecede
commit 6d63bf9194
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ public:
}
Instruction *CreateFNeg(Constant *C) const {
return BinaryOperator::CreateFNeg(C);
return UnaryOperator::CreateFNeg(C);
}
Instruction *CreateNot(Constant *C) const {