Use SelectionDAGBuiler::getRoot instead of SelectionDAG::getRoot
authorSerge Pavlov <sepavloff@gmail.com>
Tue, 13 Jun 2023 10:50:03 +0000 (17:50 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Tue, 13 Jun 2023 11:59:39 +0000 (18:59 +0700)
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 0f2059b..267bdc0 100644 (file)
@@ -6595,7 +6595,7 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
     const DataLayout DLayout = DAG.getDataLayout();
     EVT EnvVT = TLI.getValueType(DLayout, I.getType());
     Align TempAlign = DAG.getEVTAlign(EnvVT);
-    SDValue Chain = DAG.getRoot();
+    SDValue Chain = getRoot();
     // Use GET_FPENV if it is legal or custom. Otherwise use memory-based node
     // and temporary storage in stack.
     if (TLI.isOperationLegalOrCustom(ISD::SET_FPENV, EnvVT)) {