Make HandleSDNode::getValue return an SDValue instead of
authorDan Gohman <gohman@apple.com>
Thu, 21 Aug 2008 16:02:46 +0000 (16:02 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 21 Aug 2008 16:02:46 +0000 (16:02 +0000)
the full SDUse, which isn't needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55121 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index c045ffe7161975f30a5a9205e29f90231e56b275..63edd7cef9f302c700e39252d0675fc3819d61dc 100644 (file)
@@ -1453,7 +1453,7 @@ public:
     InitOperands(&Op, 1);
   }
   ~HandleSDNode();  
-  SDUse getValue() const { return Op; }
+  const SDValue &getValue() const { return Op.getSDValue(); }
 };
 
 /// Abstact virtual class for operations for memory operations