a1f8ad145e
applied to our copy of llvm/clang. These can be applied in alphabetical order to a pristine llvm/clang 3.4 release source tree, to result in the same version used in FreeBSD. This is intended to clearly document all the changes until now, which mostly consist of cherry pickings from the respective upstream trunks, plus a number of hand-written FreeBSD-specific ones. Hopefully those can eventually be cleaned up and sent upstream too. MFC after: 1 week X-MFC-With: r263313
22 lines
874 B
Diff
22 lines
874 B
Diff
Pull in r199940 from upstream llvm trunk (by Eric Christopher):
|
|
|
|
Fix out of bounds access to the double regs array. Given the
|
|
code this looks correct, but could use review. The previous
|
|
was definitely not correct.
|
|
|
|
Introduced here: http://svn.freebsd.org/changeset/base/262261
|
|
|
|
Index: lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
|
|
===================================================================
|
|
--- lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
|
|
+++ lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
|
|
@@ -734,7 +734,7 @@ bool SparcAsmParser::matchRegisterName(const AsmTo
|
|
&& !name.substr(1, 2).getAsInteger(10, intVal)
|
|
&& intVal >= 32 && intVal <= 62 && (intVal % 2 == 0)) {
|
|
// FIXME: Check V9
|
|
- RegNo = DoubleRegs[16 + intVal/2];
|
|
+ RegNo = DoubleRegs[intVal/2];
|
|
RegKind = SparcOperand::rk_DoubleReg;
|
|
return true;
|
|
}
|