mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-06 08:10:18 +00:00
Pass correct is_dst to call visitor
This commit is contained in:
parent
46def3e7e0
commit
0417df3015
1 changed files with 18 additions and 3 deletions
|
@ -1291,7 +1291,12 @@ impl<T: Operand> CallArgs<T> {
|
||||||
.iter()
|
.iter()
|
||||||
.zip(details.return_arguments.iter())
|
.zip(details.return_arguments.iter())
|
||||||
{
|
{
|
||||||
visitor.visit_ident(param, Some((type_, *space)), true, false)?;
|
visitor.visit_ident(
|
||||||
|
param,
|
||||||
|
Some((type_, *space)),
|
||||||
|
*space == StateSpace::Reg,
|
||||||
|
false,
|
||||||
|
)?;
|
||||||
}
|
}
|
||||||
visitor.visit_ident(&self.func, None, false, false)?;
|
visitor.visit_ident(&self.func, None, false, false)?;
|
||||||
for (param, (type_, space)) in self
|
for (param, (type_, space)) in self
|
||||||
|
@ -1315,7 +1320,12 @@ impl<T: Operand> CallArgs<T> {
|
||||||
.iter_mut()
|
.iter_mut()
|
||||||
.zip(details.return_arguments.iter())
|
.zip(details.return_arguments.iter())
|
||||||
{
|
{
|
||||||
visitor.visit_ident(param, Some((type_, *space)), true, false)?;
|
visitor.visit_ident(
|
||||||
|
param,
|
||||||
|
Some((type_, *space)),
|
||||||
|
*space == StateSpace::Reg,
|
||||||
|
false,
|
||||||
|
)?;
|
||||||
}
|
}
|
||||||
visitor.visit_ident(&mut self.func, None, false, false)?;
|
visitor.visit_ident(&mut self.func, None, false, false)?;
|
||||||
for (param, (type_, space)) in self
|
for (param, (type_, space)) in self
|
||||||
|
@ -1339,7 +1349,12 @@ impl<T: Operand> CallArgs<T> {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.zip(details.return_arguments.iter())
|
.zip(details.return_arguments.iter())
|
||||||
.map(|(param, (type_, space))| {
|
.map(|(param, (type_, space))| {
|
||||||
visitor.visit_ident(param, Some((type_, *space)), true, false)
|
visitor.visit_ident(
|
||||||
|
param,
|
||||||
|
Some((type_, *space)),
|
||||||
|
*space == StateSpace::Reg,
|
||||||
|
false,
|
||||||
|
)
|
||||||
})
|
})
|
||||||
.collect::<Result<Vec<_>, _>>()?;
|
.collect::<Result<Vec<_>, _>>()?;
|
||||||
let func = visitor.visit_ident(self.func, None, false, false)?;
|
let func = visitor.visit_ident(self.func, None, false, false)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue