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(); }
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to