Merge pull request #1233 from RustPython/revert-1225-coolreader18/nested-boolops

Revert "Fix compilation of nested boolean operations"
This commit is contained in:
Noah
2019-08-11 12:29:29 -05:00
committed by GitHub

View File

@@ -1303,9 +1303,11 @@ impl<O: OutputStream> Compiler<O> {
self.emit(Instruction::Pop);
}
if let Some(false_label) = false_label {
self.emit(Instruction::Duplicate);
self.emit(Instruction::JumpIfFalse {
target: false_label,
});
self.emit(Instruction::Pop);
}
}
}