summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/TargetMachine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index f58535d8767..43a587ba847 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/lib/Target/TargetMachine.cpp
@@ -82,11 +82,11 @@ void TargetMachine::resetTargetOptions(const Function &F) const {
StringRef Denormal =
F.getFnAttribute("denormal-fp-math").getValueAsString();
if (Denormal == "ieee")
- Options.FPDenormalType = FPDenormal::IEEE;
+ Options.FPDenormalMode = FPDenormal::IEEE;
else if (Denormal == "preserve-sign")
- Options.FPDenormalType = FPDenormal::PreserveSign;
+ Options.FPDenormalMode = FPDenormal::PreserveSign;
else if (Denormal == "positive-zero")
- Options.FPDenormalType = FPDenormal::PositiveZero;
+ Options.FPDenormalMode = FPDenormal::PositiveZero;
}
/// Returns the code generation relocation model. The choices are static, PIC,
OpenPOWER on IntegriCloud