projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2962d95
)
MCRegisterClass should be returned by const ref, not by value.
author
Lang Hames
<lhames@gmail.com>
Fri, 26 Oct 2012 22:14:10 +0000
(22:14 +0000)
committer
Lang Hames
<lhames@gmail.com>
Fri, 26 Oct 2012 22:14:10 +0000
(22:14 +0000)
llvm-svn: 166822
llvm/include/llvm/MC/MCRegisterInfo.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/MC/MCRegisterInfo.h
b/llvm/include/llvm/MC/MCRegisterInfo.h
index 6749bdffc2f563fe8e0e7cd5a2e90b694a779562..f05baeaaf6899b7313c9bed548c0a96d28a0b8bc 100644
(file)
--- a/
llvm/include/llvm/MC/MCRegisterInfo.h
+++ b/
llvm/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];
}