[llvm] deeaec7 - Add a const version of SDUse::getUser [nfc]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 11:19:44 PST 2022


Author: Philip Reames
Date: 2022-11-11T11:19:08-08:00
New Revision: deeaec76b18229e3c1aca5901879d1636a5d2ea5

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

LOG: Add a const version of SDUse::getUser [nfc]

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index f3661a329d8ea..7eb6d06441092 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -305,6 +305,7 @@ class SDUse {
 
   /// This returns the SDNode that contains this Use.
   SDNode *getUser() { return User; }
+  const SDNode *getUser() const { return User; }
 
   /// Get the next SDUse in the use list.
   SDUse *getNext() const { return Next; }


        


More information about the llvm-commits mailing list