[clang] a936357 - [clang][Interp][NFC] Return integer from Boolean::bitWidth()

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 4 08:36:00 PDT 2023


Author: Timm Bäder
Date: 2023-07-04T17:35:28+02:00
New Revision: a93635794813ab26a751f72ccb78534e288390b2

URL: https://github.com/llvm/llvm-project/commit/a93635794813ab26a751f72ccb78534e288390b2
DIFF: https://github.com/llvm/llvm-project/commit/a93635794813ab26a751f72ccb78534e288390b2.diff

LOG: [clang][Interp][NFC] Return integer from Boolean::bitWidth()

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 e496f70eb4117a..579842ce46aa04 100644
--- a/clang/lib/AST/Interp/Boolean.h
+++ b/clang/lib/AST/Interp/Boolean.h
@@ -64,7 +64,7 @@ class Boolean final {
 
   Boolean toUnsigned() const { return *this; }
 
-  constexpr static unsigned bitWidth() { return true; }
+  constexpr static unsigned bitWidth() { return 1; }
   bool isZero() const { return !V; }
   bool isMin() const { return isZero(); }
 


        


More information about the cfe-commits mailing list