summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-02-23 00:47:00 +0000
committerDevang Patel <dpatel@apple.com>2008-02-23 00:47:00 +0000
commit2f2ff159a584bc9e7fdeb4863e6a19e14bac8255 (patch)
tree7451786375a165e8bcb0967b68b80a96c75a46b9 /llvm/include
parent69876ef7005be93b1531b386336a40e481af2dfd (diff)
downloadbcm5719-llvm-2f2ff159a584bc9e7fdeb4863e6a19e14bac8255.tar.gz
bcm5719-llvm-2f2ff159a584bc9e7fdeb4863e6a19e14bac8255.zip
Use dyn_cast instead of isa + cast.
llvm-svn: 47511
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Instructions.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h
index 8d912f23702..1335031e5a3 100644
--- a/llvm/include/llvm/Instructions.h
+++ b/llvm/include/llvm/Instructions.h
@@ -2375,7 +2375,11 @@ public:
return getOperand(0);
}
- unsigned getIndex() {
+ inline unsigned getIndex() {
+ return Idx;
+ }
+
+ inline const unsigned getIndex() const {
return Idx;
}
OpenPOWER on IntegriCloud