[KnownBits] Add missing const to a couple of methods
authorJay Foad <jay.foad@amd.com>
Tue, 24 Jan 2023 15:01:16 +0000 (15:01 +0000)
committerJay Foad <jay.foad@amd.com>
Tue, 24 Jan 2023 15:01:39 +0000 (15:01 +0000)
llvm/include/llvm/Support/KnownBits.h

index f20d3e1..0fb056b 100644 (file)
@@ -414,11 +414,11 @@ public:
   /// Compute known bits for the absolute value.
   KnownBits abs(bool IntMinIsPoison = false) const;
 
-  KnownBits byteSwap() {
+  KnownBits byteSwap() const {
     return KnownBits(Zero.byteSwap(), One.byteSwap());
   }
 
-  KnownBits reverseBits() {
+  KnownBits reverseBits() const {
     return KnownBits(Zero.reverseBits(), One.reverseBits());
   }