[all-commits] [llvm/llvm-project] 04cec5: [clang][dataflow] Avoid MaxIterations overflow

jkorous-apple via All-commits all-commits at lists.llvm.org
Mon Jan 24 15:58:16 PST 2022


  Branch: refs/heads/dataflow-overflow
  Home:   https://github.com/llvm/llvm-project
  Commit: 04cec51bccbffe2fae54055004ef39b65702cd81
      https://github.com/llvm/llvm-project/commit/04cec51bccbffe2fae54055004ef39b65702cd81
  Author: Jan Korous <jkorous at apple.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

  Log Message:
  -----------
  [clang][dataflow] Avoid MaxIterations overflow

unsigned is technically guaranteed to be only 16 bits in which case 1 << 16 would wrap around to zero.

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




More information about the All-commits mailing list