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

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd01d971aa2c4b464a295ca5c78ff93fc4441dc3
      https://github.com/llvm/llvm-project/commit/dd01d971aa2c4b464a295ca5c78ff93fc4441dc3
  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