projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a logic bug when copying fast-math flags.
[oota-llvm.git]
/
lib
/
IR
/
Instructions.cpp
diff --git
a/lib/IR/Instructions.cpp
b/lib/IR/Instructions.cpp
index 16993f1bba545d074bce5bec4b9c24e32e975c9d..b113d51d4168fdee272c8a36411775417fdd8c14 100644
(file)
--- a/
lib/IR/Instructions.cpp
+++ b/
lib/IR/Instructions.cpp
@@
-2043,7
+2043,7
@@
void BinaryOperator::copyFlags(const Value *V) {
// Copy the fast-math flags.
if (auto *FP = dyn_cast<FPMathOperator>(V))
-
set
FastMathFlags(FP->getFastMathFlags());
+
copy
FastMathFlags(FP->getFastMathFlags());
}
//===----------------------------------------------------------------------===//