summaryrefslogtreecommitdiffstats
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-03-29 20:41:38 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-03-29 20:41:38 +0000
commit031b7481c818b7ad6f43ba942ed33663aef7f1b8 (patch)
tree07ce5fab70c5866ff28fd09f72f93664719bb886 /include/llvm/Instruction.h
parent31fd5a571eb8048a1084dd8e20a49dd0785de11a (diff)
downloadexternal_llvm-031b7481c818b7ad6f43ba942ed33663aef7f1b8.zip
external_llvm-031b7481c818b7ad6f43ba942ed33663aef7f1b8.tar.gz
external_llvm-031b7481c818b7ad6f43ba942ed33663aef7f1b8.tar.bz2
Updated the comment for isArithmeticShift() to match reality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 856531c..0a39b08 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -144,8 +144,7 @@ public:
return getOpcode() == Shl || getOpcode() == LShr;
}
- /// isLogicalShift - Return true if this is a logical shift left or a logical
- /// shift right.
+ /// isArithmeticShift - Return true if this is an arithmetic shift right.
inline bool isArithmeticShift() const {
return getOpcode() == AShr;
}