mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
MCRegisterClass should be returned by const ref, not by value.
llvm-svn: 166822
This commit is contained in:
parent
c9ba5a38bb
commit
a2fffc78e7
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user