diff options
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 51da49f09f..fe688112f1 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -127,13 +127,13 @@ public: /// isLogicalShift - Return true if this is a logical shift left or a logical /// shift right. - inline bool isLogicalShift() { + inline bool isLogicalShift() const { return getOpcode() == Shl || getOpcode() == LShr; } /// isLogicalShift - Return true if this is a logical shift left or a logical /// shift right. - inline bool isArithmeticShift() { + inline bool isArithmeticShift() const { return getOpcode() == AShr; } |