Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Include logical operation kind when num_reads assertion fails
Browse files Browse the repository at this point in the history
  • Loading branch information
KronicDeth committed Oct 8, 2020
1 parent 8ae1d50 commit d6c5f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/codegen/src/builder/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,8 @@ impl<'f, 'o> ScopedFunctionBuilder<'f, 'o> {
debug_in!(self, "operator = {:?}", kind);
assert_eq!(
num_reads, 2,
"expected logical operations to have two operands"
"expected logical operation ({:?}) to have two operands",
kind
);
let lhs = self.build_value(reads[0])?;
let rhs = self.build_value(reads[1])?;
Expand Down

0 comments on commit d6c5f46

Please sign in to comment.