[all-commits] [llvm/llvm-project] ba51d2: [CodeView] Clamp Frontend version

modiking via All-commits all-commits at lists.llvm.org
Tue Dec 28 15:22:33 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba51d26ec4519f5b31de3acf643264504ea7bc7c
      https://github.com/llvm/llvm-project/commit/ba51d26ec4519f5b31de3acf643264504ea7bc7c
  Author: modimo <modimo at fb.com>
  Date:   2021-12-28 (Tue, 28 Dec 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
    A llvm/test/MC/COFF/cv-compiler-info-clamp.ll

  Log Message:
  -----------
  [CodeView] Clamp Frontend version

D43002 introduced a test debug-info-objname.cpp that outputted the current compiler version into CodeView. Internally we appended a date to the patch version and overflowed the 16-bits allocated to that space. This change clamps the Frontend version outputted values to 16-bits like rGd1185fc081ead71a8bf239ff1814f5ff73084c15 did for the Backend version.

Testing:
ninja check-all
newly added tests correctly clamps and no longer asserts when trying to output the field

Reviewed By: aganea

Differential Revision: https://reviews.llvm.org/D116243




More information about the All-commits mailing list