projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
715672c
)
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166822
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/MC/MCRegisterInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/MC/MCRegisterInfo.h
b/include/llvm/MC/MCRegisterInfo.h
index 6749bdffc2f563fe8e0e7cd5a2e90b694a779562..f05baeaaf6899b7313c9bed548c0a96d28a0b8bc 100644
(file)
--- 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];
}