[all-commits] [llvm/llvm-project] 62e4a7: [Support] Fix for two issues with clearing of the ...

riyazsnps via All-commits all-commits at lists.llvm.org
Wed Feb 9 00:47:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62e4a77746f4f6dd810f49644fd1f6cebda2235f
      https://github.com/llvm/llvm-project/commit/62e4a77746f4f6dd810f49644fd1f6cebda2235f
  Author: RVP <riyaz at synopsys.com>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

  Changed paths:
    M llvm/include/llvm/Support/CommandLine.h
    M llvm/unittests/Support/CommandLineTest.cpp

  Log Message:
  -----------
  [Support] Fix for two issues with clearing of the internal storage for cl::bits

This patch fixes two issues with clearing of the internal storage for cl::bits

1. The internal bits storage for cl::bits is uninitialized. This is a problem if a cl::bits option is not defined with static lifetime.
2. ResetAllOptionOccurrences does not reset cl::bits options.

The latter is also discussed in:

https://lists.llvm.org/pipermail/llvm-dev/2021-February/148299.html

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




More information about the All-commits mailing list