[clang] f927b71 - [clang][Interp] Specify Boolean conversion operartors as (u)int32
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 29 03:51:41 PDT 2022
Author: Timm Bäder
Date: 2022-09-29T12:50:57+02:00
New Revision: f927b71376c198a41f0c578be896bf231a6a5fd1
URL: https://github.com/llvm/llvm-project/commit/f927b71376c198a41f0c578be896bf231a6a5fd1
DIFF: https://github.com/llvm/llvm-project/commit/f927b71376c198a41f0c578be896bf231a6a5fd1.diff
LOG: [clang][Interp] Specify Boolean conversion operartors as (u)int32
Follow up to https://reviews.llvm.org/D133934
Added:
Modified:
clang/lib/AST/Interp/Boolean.h
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/Boolean.h b/clang/lib/AST/Interp/Boolean.h
index 20831fff9ade..3122388a49a5 100644
--- a/clang/lib/AST/Interp/Boolean.h
+++ b/clang/lib/AST/Interp/Boolean.h
@@ -46,14 +46,14 @@ class Boolean final {
Boolean operator-() const { return Boolean(V); }
Boolean operator~() const { return Boolean(true); }
- explicit operator unsigned() const { return V; }
explicit operator int8_t() const { return V; }
explicit operator uint8_t() const { return V; }
explicit operator int16_t() const { return V; }
explicit operator uint16_t() const { return V; }
+ explicit operator int32_t() const { return V; }
+ explicit operator uint32_t() const { return V; }
explicit operator int64_t() const { return V; }
explicit operator uint64_t() const { return V; }
- explicit operator int() const { return V; }
explicit operator bool() const { return V; }
APSInt toAPSInt() const {
More information about the cfe-commits
mailing list