[all-commits] [llvm/llvm-project] a9b5ed: Make mlir::Value's bool conversion operator explicit

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Mon May 25 09:22:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a9b5edc5e2c4ec9d506b2c30465ee9f2dc21e5cc
      https://github.com/llvm/llvm-project/commit/a9b5edc5e2c4ec9d506b2c30465ee9f2dc21e5cc
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2020-05-25 (Mon, 25 May 2020)

  Changed paths:
    M mlir/include/mlir/EDSC/Builders.h
    M mlir/include/mlir/IR/Value.h
    M mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
    M mlir/lib/Parser/Parser.cpp

  Log Message:
  -----------
  Make mlir::Value's bool conversion operator explicit

This still allows `if (value)` while requiring an explicit cast when not
in a boolean context. This means things like `std::set<Value>` will no
longer compile.

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




More information about the All-commits mailing list