[clang] 54e2749 - [clang] Adjust TargetInfo bitfield (#74893)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 9 07:13:31 PST 2023


Author: Nathan Sidwell
Date: 2023-12-09T10:13:27-05:00
New Revision: 54e2749609d7114f4a48f4146cddeecf76d935a4

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

LOG: [clang] Adjust TargetInfo bitfield (#74893)

An 8 bit bitfield should not have a preferred type of bool.

Added: 
    

Modified: 
    clang/include/clang/Basic/TargetInfo.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h
index 41f3c2e403cbe..ec0189627dfbd 100644
--- a/clang/include/clang/Basic/TargetInfo.h
+++ b/clang/include/clang/Basic/TargetInfo.h
@@ -266,7 +266,6 @@ class TargetInfo : public TransferrableTargetInfo,
   LLVM_PREFERRED_TYPE(bool)
   unsigned AllowAMDGPUUnsafeFPAtomics : 1;
 
-  LLVM_PREFERRED_TYPE(bool)
   unsigned ARMCDECoprocMask : 8;
 
   unsigned MaxOpenCLWorkGroupSize;


        


More information about the cfe-commits mailing list