Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
d18b1603
Commit
d18b1603
authored
17 years ago
by
Nick Lewycky
Browse files
Options
Downloads
Patches
Plain Diff
Fix edge case.
llvm-svn: 37532
parent
2117d1f2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/Support/ConstantRange.cpp
+2
-2
2 additions, 2 deletions
llvm/lib/Support/ConstantRange.cpp
with
2 additions
and
2 deletions
llvm/lib/Support/ConstantRange.cpp
+
2
−
2
View file @
d18b1603
...
...
@@ -108,7 +108,7 @@ APInt ConstantRange::getUnsignedMin() const {
APInt
ConstantRange
::
getSignedMax
()
const
{
APInt
SignedMax
(
APInt
::
getSignedMaxValue
(
getBitWidth
()));
if
(
!
isWrappedSet
())
{
if
(
getLower
().
sl
t
(
getUpper
()
-
1
))
if
(
getLower
().
sl
e
(
getUpper
()
-
1
))
return
getUpper
()
-
1
;
else
return
SignedMax
;
...
...
@@ -130,7 +130,7 @@ APInt ConstantRange::getSignedMax() const {
APInt
ConstantRange
::
getSignedMin
()
const
{
APInt
SignedMin
(
APInt
::
getSignedMinValue
(
getBitWidth
()));
if
(
!
isWrappedSet
())
{
if
(
getLower
().
sl
t
(
getUpper
()
-
1
))
if
(
getLower
().
sl
e
(
getUpper
()
-
1
))
return
getLower
();
else
return
SignedMin
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment