HomePhabricator

Make mlir::Value's bool conversion operator explicit

Authored by bkramer on May 24 2020, 2:08 PM.

Description

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