[all-commits] [llvm/llvm-project] 656c5d: [clang][llvm][NFC] Change misexpect's tolerance op...

Paul Kirth via All-commits all-commits at lists.llvm.org
Wed Aug 17 07:39:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 656c5d652ce10257e90c7693b34336b6ce0ecfa3
      https://github.com/llvm/llvm-project/commit/656c5d652ce10257e90c7693b34336b6ce0ecfa3
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/lib/Frontend/CompilerInvocation.cpp
    M llvm/include/llvm/IR/LLVMContext.h
    M llvm/lib/IR/LLVMContext.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    M llvm/lib/Transforms/Utils/MisExpect.cpp

  Log Message:
  -----------
  [clang][llvm][NFC] Change misexpect's tolerance option to be 32-bit

In D131869 we noticed that we jump through some hoops because we parse the
tolerance option used in MisExpect.cpp into a 64-bit integer. This is
unnecessary, since the value can only be in the range [0, 100).

This patch changes the underlying type to be 32-bit from where it is
parsed in Clang through to it's use in LLVM.

Reviewed By: jloser

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




More information about the All-commits mailing list