diff options
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 0f0515ba311..4e220c23985 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1270,11 +1270,12 @@ SDValue SelectionDAG::getConvertRndSat(EVT VT, DebugLoc dl,      return Val;    FoldingSetNodeID ID; +  SDValue Ops[] = { Val, DTy, STy, Rnd, Sat }; +  AddNodeIDNode(ID, ISD::CONVERT_RNDSAT, getVTList(VT), &Ops[0], 5);    void* IP = 0;    if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP))      return SDValue(E, 0);    CvtRndSatSDNode *N = NodeAllocator.Allocate<CvtRndSatSDNode>(); -  SDValue Ops[] = { Val, DTy, STy, Rnd, Sat };    new (N) CvtRndSatSDNode(VT, dl, Ops, 5, Code);    CSEMap.InsertNode(N, IP);    AllNodes.push_back(N);  | 

