[llvm] 8d1edae - Use SelectionDAGBuiler::getRoot instead of SelectionDAG::getRoot

Serge Pavlov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 05:00:42 PDT 2023


Author: Serge Pavlov
Date: 2023-06-13T18:59:39+07:00
New Revision: 8d1edae998fb40bbb22c5b5146eb333cf6148b35

URL: https://github.com/llvm/llvm-project/commit/8d1edae998fb40bbb22c5b5146eb333cf6148b35
DIFF: https://github.com/llvm/llvm-project/commit/8d1edae998fb40bbb22c5b5146eb333cf6148b35.diff

LOG: Use SelectionDAGBuiler::getRoot instead of SelectionDAG::getRoot

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 0f2059b0cdcd6..267bdc02cdf05 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -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)) {


        


More information about the llvm-commits mailing list