mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
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
This commit is contained in:
@@ -370,7 +370,7 @@ public:
|
|||||||
|
|
||||||
/// getRegClass - Returns the register class associated with the enumeration
|
/// getRegClass - Returns the register class associated with the enumeration
|
||||||
/// value. See class MCOperandInfo.
|
/// 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");
|
assert(i < getNumRegClasses() && "Register Class ID out of range");
|
||||||
return Classes[i];
|
return Classes[i];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user