diff options
Diffstat (limited to 'ptx/src/pass/hoist_globals.rs')
-rw-r--r-- | ptx/src/pass/hoist_globals.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ptx/src/pass/hoist_globals.rs b/ptx/src/pass/hoist_globals.rs index 753172a..718c052 100644 --- a/ptx/src/pass/hoist_globals.rs +++ b/ptx/src/pass/hoist_globals.rs @@ -5,7 +5,7 @@ pub(super) fn run<'input>( ) -> Result<Vec<Directive2<'input, ast::Instruction<SpirvWord>, SpirvWord>>, TranslateError> {
let mut result = Vec::with_capacity(directives.len());
for mut directive in directives.into_iter() {
- run_directive(&mut result, &mut directive);
+ run_directive(&mut result, &mut directive)?;
result.push(directive);
}
Ok(result)
|