[all-commits] [llvm/llvm-project] 13be27: [AVR] Fix read of uninitialized variable AVRSubtar...

Dylan McKay via All-commits all-commits at lists.llvm.org
Thu Mar 12 04:10:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 13be27482e5300ac8d7cafacd8a046a6611ad1c4
      https://github.com/llvm/llvm-project/commit/13be27482e5300ac8d7cafacd8a046a6611ad1c4
  Author: Dylan McKay <me at dylanmckay.io>
  Date:   2020-03-13 (Fri, 13 Mar 2020)

  Changed paths:
    M llvm/lib/Target/AVR/AVRSubtarget.cpp
    M llvm/lib/Target/AVR/AVRSubtarget.h

  Log Message:
  -----------
  [AVR] Fix read of uninitialized variable AVRSubtarget:::ELFArch

Found by the LLVM MemorySanitizer tests when switching AVR to a default
backend.

ELFArch must be initialized before the call to
initializeSubtargetDependencies().

The uninitialized read would occur deep within TableGen'd code.




More information about the All-commits mailing list