aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-12-09 01:10:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-12-09 01:10:37 +0000
commit7ced2e0b304e76ab746c7d9a54ad8d4930445a38 (patch)
treea161e3399d6f2ca46ddcadca9ae17114da5dd6a6 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentf2dc5c785dea1816cbc064b58b4b6ea23c4fd7d4 (diff)
Add const qualifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 74651c149d..851e6c040e 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -5870,7 +5870,7 @@ SDValue SelectionDAG::UnrollVectorOp(SDNode *N, unsigned ResNE) {
/// InferPtrAlignment - Infer alignment of a load / store address. Return 0 if
/// it cannot be inferred.
-unsigned SelectionDAG::InferPtrAlignment(SDValue Ptr) {
+unsigned SelectionDAG::InferPtrAlignment(SDValue Ptr) const {
// If this is a direct reference to a stack slot, use information about the
// stack slot's alignment.
int FrameIdx = 1 << 31;