summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2013-02-14 23:38:33 +0000
committerDaniel Malea <daniel.malea@intel.com>2013-02-14 23:38:33 +0000
commit8d7b7a434a4492a70ed29bb91d9aa0ce9ce94947 (patch)
tree45757a35bc8ba84b92cab325ca2e41e95c2acc39 /llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
parent1083eb175cbcbfc0b824110ec344a268c260f5aa (diff)
downloadbcm5719-llvm-8d7b7a434a4492a70ed29bb91d9aa0ce9ce94947.tar.gz
bcm5719-llvm-8d7b7a434a4492a70ed29bb91d9aa0ce9ce94947.zip
Fix TestSBData.py test case (tested fix Linux/Mac)
- stop ignoring the error-codes in the 'error' variable - removed out-of-bounds accesses with read-only array fields such as: self.assertTrue(data2.uint8[6] == 0, 'binary 0 terminator') Since SBData wraps a (6-character) python string literal, trying to read the null-terminator raises an exception. Instead, I replaced the out-of-bounds read with a length-check. Other out-of-bounds reads (via accessor function like SBData.GetUnsignedInt8) don't throw and are OK. I just added asserts that errors are set for these negative cases. llvm-svn: 175223
Diffstat (limited to 'llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud