Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr_unpin_plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Open Source Software
zipr_unpin_plugin
Commits
4a787715
Commit
4a787715
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
added sanity checkong that a memory operand is found
parent
ecbe7daa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unpin.cpp
+1
-0
1 addition, 0 deletions
unpin.cpp
with
1 addition
and
0 deletions
unpin.cpp
+
1
−
0
View file @
4a787715
...
...
@@ -449,6 +449,7 @@ void Unpin_t::DoUpdateForInstructions()
const
auto
the_arg_it
=
find_if
(
ALLOF
(
operands
),[](
const
DecodedOperand_t
&
op
){
return
op
.
isMemory
()
&&
op
.
getString
()
!=
""
;
});
DataScoop_t
*
wrt
=
dynamic_cast
<
DataScoop_t
*>
(
reloc
->
GetWRT
());
assert
(
wrt
);
assert
(
the_arg_it
!=
operands
.
end
());
const
auto
&
the_arg
=*
the_arg_it
;
virtual_offset_t
rel_addr1
=
the_arg
.
getMemoryDisplacement
();
// ->Memory.Displacement;
//virtual_offset_t rel_addr1=the_arg->Memory.Displacement;
...
...
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