Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
00d31d5e
Commit
00d31d5e
authored
Sep 25, 2014
by
Jan Hubicka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix previous commit.
From-SVN: r215576
parent
ba392339
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
gcc/ipa-devirt.c
+8
-8
No files found.
gcc/ipa-devirt.c
View file @
00d31d5e
...
@@ -2057,14 +2057,15 @@ ipa_polymorphic_call_context::restrict_to_inner_class (tree expected_type)
...
@@ -2057,14 +2057,15 @@ ipa_polymorphic_call_context::restrict_to_inner_class (tree expected_type)
tree
type
=
outer_type
;
tree
type
=
outer_type
;
HOST_WIDE_INT
cur_offset
=
offset
;
HOST_WIDE_INT
cur_offset
=
offset
;
bool
speculative
=
false
;
bool
speculative
=
false
;
bool
size_unknown
=
false
;
/* Update OUTER_TYPE to match EXPECTED_TYPE if it is not set. */
/* Update OUTER_TYPE to match EXPECTED_TYPE if it is not set. */
if
(
!
outer_type
)
if
(
!
outer_type
)
{
{
clear_outer_type
(
expected_type
);
clear_outer_type
(
expected_type
);
type
=
expected_type
;
type
=
expected_type
;
cur_offset
=
0
;
cur_offset
=
0
;
}
}
/* See if OFFSET points inside OUTER_TYPE. If it does not, we know
/* See if OFFSET points inside OUTER_TYPE. If it does not, we know
that the context is either invalid, or the instance type must be
that the context is either invalid, or the instance type must be
derived from OUTER_TYPE.
derived from OUTER_TYPE.
...
@@ -2133,7 +2134,6 @@ ipa_polymorphic_call_context::restrict_to_inner_class (tree expected_type)
...
@@ -2133,7 +2134,6 @@ ipa_polymorphic_call_context::restrict_to_inner_class (tree expected_type)
{
{
HOST_WIDE_INT
pos
,
size
;
HOST_WIDE_INT
pos
,
size
;
tree
fld
;
tree
fld
;
bool
size_unknown
;
/* If we do not know size of TYPE, we need to be more conservative
/* If we do not know size of TYPE, we need to be more conservative
about accepting cases where we can not find EXPECTED_TYPE.
about accepting cases where we can not find EXPECTED_TYPE.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment