DescriptionFix handling errors in switch instruction by PNaCl bitcode reader.
The bitcode reader for the switch instruction has a couple of errors,
which can cause asserts/crashes to occur. One problem was that it
didn't check if the branch block of a case was defined. The other
problem was that if an error occurred after the switch instruction was
created, an assertion was fired for not deleting the switch
instruction.
BUG=None
R=jfb@chromium.org
Committed: https://chromium.googlesource.com/native_client/pnacl-llvm/+/510766d08eef6c49b259a24fa8b5f6d6e7fa6071
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use unique_ptr for switch instruction. #
Total comments: 2
Messages
Total messages: 8 (1 generated)
|