MCRegisterClass should be returned by const ref, not by value.

llvm-svn: 166822
This commit is contained in:
Lang Hames 2012-10-26 22:14:10 +00:00
parent 2962d9599e
commit a312bb0879
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}