[all-commits] [llvm/llvm-project] e1e3b6: [M68k] Avoid UB in disassembler
Ricky Taylor via All-commits
all-commits at lists.llvm.org
Wed Sep 29 14:12:02 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e1e3b6ee72977c584052a9da8735c31c2a17385a
https://github.com/llvm/llvm-project/commit/e1e3b6ee72977c584052a9da8735c31c2a17385a
Author: Ricky Taylor <rickytaylor26 at gmail.com>
Date: 2021-09-29 (Wed, 29 Sep 2021)
Changed paths:
M llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
Log Message:
-----------
[M68k] Avoid UB in disassembler
When reading 32 bits a 32-bit shift would be executed.
This is undefined behaviour, but in this case we can just replace the
entire scratch value to avoid it.
Differential Revision: https://reviews.llvm.org/D110769
More information about the All-commits
mailing list