mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 00:50:03 +08:00
This reverts diff D97610 (commit 0223ab035c) and adds a one-line fix to verify that a `MemoryBufferRef` has sufficient length before reading a 4-byte magic number.
Differential Revision: https://reviews.llvm.org/D97757