We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 147f06c commit 061516fCopy full SHA for 061516f
src/loader/flattening/allocate_registers.rs
@@ -168,11 +168,7 @@ impl Allocation {
168
169
pub fn get_as_reg(&self, input: &NodeInput) -> Result<Range<u32>, Error> {
170
match input {
171
- NodeInput::Reference(origin) => self
172
- .nodes_outputs
173
- .get(origin)
174
- .cloned()
175
- .ok_or(Error::NotAllocated),
+ NodeInput::Reference(origin) => self.get(origin),
176
NodeInput::Constant(_) => {
177
// Constants don't need register allocation
178
Err(Error::NotARegister)
0 commit comments