diff options
| author | Devang Patel <dpatel@apple.com> | 2008-02-23 00:47:00 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-02-23 00:47:00 +0000 |
| commit | 2f2ff159a584bc9e7fdeb4863e6a19e14bac8255 (patch) | |
| tree | 7451786375a165e8bcb0967b68b80a96c75a46b9 /llvm/include | |
| parent | 69876ef7005be93b1531b386336a40e481af2dfd (diff) | |
| download | bcm5719-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.h | 6 |
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; } |

