diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-07-11 16:31:51 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-07-11 16:31:51 +0000 |
commit | ff3ea8060c1d036a296fd8e5145b7dfc0fdabf58 (patch) | |
tree | d8f4c233b12394978c9751e59291fae0719624ad /lldb/source/Commands/CommandObjectSource.cpp | |
parent | 2cd5ff80033452b1c7569ce46443c240a9a4d573 (diff) | |
download | llvm-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