diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-01-09 09:47:25 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-01-09 09:47:25 +0000 |
commit | 4e3a40293f2e6f04396d2c7d355c5f2a03488c87 (patch) | |
tree | 44831215042471043259480514d82e38b8c475f7 /lib/Analysis/DIBuilder.cpp | |
parent | a7cb6992514c50d1f40a258668f5702177355451 (diff) |
Don't rely on the fact that shift values are never very large, and thus
this substraction will result in small negative numbers at worst which
become very large positive numbers on assignment and are thus caught by
the <=4 check on the next line. The >0 check clearly intended to catch
these as negative numbers.
Spotted by inspection, and impossible to trigger given the shift widths
that can be used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DIBuilder.cpp')
0 files changed, 0 insertions, 0 deletions