diff options
author | Lang Hames <lhames@gmail.com> | 2012-10-26 22:14:10 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-10-26 22:14:10 +0000 |
commit | f29c05e883dc46f3f1be9b3a5f5c50ee73899380 (patch) | |
tree | c388ffbc3bc0cf423051dead5c8339f0f95469b8 /include | |
parent | 715672c643443225d21008b177b558504b6284e8 (diff) | |
download | external_llvm-f29c05e883dc46f3f1be9b3a5f5c50ee73899380.zip external_llvm-f29c05e883dc46f3f1be9b3a5f5c50ee73899380.tar.gz external_llvm-f29c05e883dc46f3f1be9b3a5f5c50ee73899380.tar.bz2 |
MCRegisterClass should be returned by const ref, not by value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCRegisterInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/MC/MCRegisterInfo.h b/include/llvm/MC/MCRegisterInfo.h index 6749bdf..f05baea 100644 --- a/include/llvm/MC/MCRegisterInfo.h +++ b/include/llvm/MC/MCRegisterInfo.h @@ -370,7 +370,7 @@ public: /// getRegClass - Returns the register class associated with the enumeration /// value. See class MCOperandInfo. - const MCRegisterClass getRegClass(unsigned i) const { + const MCRegisterClass& getRegClass(unsigned i) const { assert(i < getNumRegClasses() && "Register Class ID out of range"); return Classes[i]; } |