projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f0781
)
Use `uint8_t` storage for enum class
author
Mehdi Amini
<aminim@google.com>
Fri, 10 May 2019 21:04:58 +0000
(14:04 -0700)
committer
Mehdi Amini
<joker.eph@gmail.com>
Sat, 11 May 2019 02:29:34 +0000
(19:29 -0700)
This is intended to fix a GCC warning:
> mlir/lib/IR/LocationDetail.h:32:25: warning: ‘mlir::detail::LocationStorage::kind’ is too small to hold all values of ‘enum class mlir::Location::Kind’
--
PiperOrigin-RevId:
247672213
mlir/include/mlir/IR/Location.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/Location.h
b/mlir/include/mlir/IR/Location.h
index
d394052
..
c16baa8
100644
(file)
--- a/
mlir/include/mlir/IR/Location.h
+++ b/
mlir/include/mlir/IR/Location.h
@@
-46,7
+46,7
@@
struct FusedLocationStorage;
/// Location objects represent source locations information in MLIR.
class Location {
public:
- enum class Kind {
+ enum class Kind
: uint8_t
{
/// This represents an unknown location.
Unknown,