[all-commits] [llvm/llvm-project] 3dd688: [DAG] OptLevelChanger - fix uninitialized variable...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Feb 4 02:54:50 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3dd688a9eec238fd4e065e3b373cf6fa47e2184f
      https://github.com/llvm/llvm-project/commit/3dd688a9eec238fd4e065e3b373cf6fa47e2184f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-02-04 (Tue, 04 Feb 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

  Log Message:
  -----------
  [DAG] OptLevelChanger - fix uninitialized variable analyzer warning (PR44471)

Ensure that OptLevelChanger::SavedFastISel is initialized in the constructor.

This should be NFC - as the equivalent 'same opt level' early-out is used in the destructor as well, so SavedFastISel is only actually referenced in the general case.

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




More information about the All-commits mailing list