aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-07-11 16:31:51 +0000
committerHal Finkel <hfinkel@anl.gov>2013-07-11 16:31:51 +0000
commitff3ea8060c1d036a296fd8e5145b7dfc0fdabf58 (patch)
treed8f4c233b12394978c9751e59291fae0719624ad /lldb/source/Commands/CommandObjectSource.cpp
parent2cd5ff80033452b1c7569ce46443c240a9a4d573 (diff)
downloadllvm-ff3ea8060c1d036a296fd8e5145b7dfc0fdabf58.zip
llvm-ff3ea8060c1d036a296fd8e5145b7dfc0fdabf58.tar.gz
llvm-ff3ea8060c1d036a296fd8e5145b7dfc0fdabf58.tar.bz2
PPCDAGToDAGISel::isRunOfOnes should return false on zero
This fixes a bug (found by csmith) at -O0 where we attempt to create a RLWIMI with an out-of-range operand. Most uses of the isRunOfOnes function are guarded by a condition that the value is not zero. This was not true in two places, and in both places a zero input would result in an out-of-rage MB value (= 32). To fix this, isRunOfOnes returns false on a zero input (and I've remove one now-redundant guard). llvm-svn: 186101
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
0 files changed, 0 insertions, 0 deletions