summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-12-19 11:39:17 -0800
committerCraig Topper <craig.topper@intel.com>2019-12-19 11:39:50 -0800
commite6e23a24beece5624068ff502fc74a466eedf038 (patch)
tree2816f1991aa004b74e92572d6f26c708bb642bdb /llvm/lib/CodeGen
parent20345707b2c9ce3e8551b9ffd18557cfa01c7ff2 (diff)
downloadbcm5719-llvm-e6e23a24beece5624068ff502fc74a466eedf038.tar.gz
bcm5719-llvm-e6e23a24beece5624068ff502fc74a466eedf038.zip
[LegalizeDAG] Add return to the strict node handling in PromoteLegalINT_TO_FP to prevent an invalid strict fp node from being created by falling into non-strict code path.
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index c9547bf1906..8ab372b60a9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -2533,6 +2533,7 @@ void SelectionDAGLegalize::PromoteLegalINT_TO_FP(
dl, NewInTy, LegalOp)});
Results.push_back(Res);
Results.push_back(Res.getValue(1));
+ return;
}
Results.push_back(
OpenPOWER on IntegriCloud