From 045ab082525d09b1749ca6eba9ac2dc3d30dc6d8 Mon Sep 17 00:00:00 2001 From: Artur Pilipenko Date: Wed, 8 Feb 2017 17:59:34 +0000 Subject: [DAGCombiner] NFC. Mark ByteProvider accessors as const llvm-svn: 294494 --- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 7f6775422e2..e3c15b77a26 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -4374,8 +4374,8 @@ struct ByteProvider { } static ByteProvider getConstantZero() { return ByteProvider(nullptr, 0); } - bool isConstantZero() { return !Load; } - bool isMemory() { return Load; } + bool isConstantZero() const { return !Load; } + bool isMemory() const { return Load; } bool operator==(const ByteProvider &Other) const { return Other.Load == Load && Other.ByteOffset == ByteOffset; -- cgit v1.2.3