forked from OSchip/llvm-project
[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:
parent
70f5aecede
commit
6d63bf9194
|
@ -196,7 +196,7 @@ public:
|
|||
}
|
||||
|
||||
Instruction *CreateFNeg(Constant *C) const {
|
||||
return BinaryOperator::CreateFNeg(C);
|
||||
return UnaryOperator::CreateFNeg(C);
|
||||
}
|
||||
|
||||
Instruction *CreateNot(Constant *C) const {
|
||||
|
|
Loading…
Reference in New Issue