[clang] 83fdf0c - Ensure that the generic associations aren't redundant

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 1 04:49:07 PDT 2022


Author: Aaron Ballman
Date: 2022-07-01T07:48:59-04:00
New Revision: 83fdf0c34e60e61849574d30c39cf7f7324c5271

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

LOG: Ensure that the generic associations aren't redundant

This should hopefully address the test failure found in:
https://lab.llvm.org/buildbot/#/builders/171/builds/16833

Added: 
    

Modified: 
    clang/test/C/drs/dr2xx.c

Removed: 
    


################################################################################
diff  --git a/clang/test/C/drs/dr2xx.c b/clang/test/C/drs/dr2xx.c
index 7cf692cb1a71..aa5fcff18f75 100644
--- a/clang/test/C/drs/dr2xx.c
+++ b/clang/test/C/drs/dr2xx.c
@@ -36,8 +36,8 @@ void dr204(void) {
    * rank; it's acceptable to use an unsigned long or unsigned int for the size
    * type (those ranks are not greater than that of signed long).
    */
-   (void)_Generic(s + sl, __typeof__(s) : 1, unsigned long : 1, unsigned int : 1);
-   (void)_Generic(p + sl, __typeof__(p) : 1, signed long : 1, signed int : 1);
+   (void)_Generic(s + sl, unsigned long long : 1, unsigned long : 1, unsigned int : 1);
+   (void)_Generic(p + sl, signed long long : 1, signed long : 1, signed int : 1);
 #elif __LLONG_WIDTH__ == __LONG_WIDTH__
   /* But if the implementation doesn't support a larger standard integer type
    * than signed long, the conversion rank should prefer signed long if the type


        


More information about the cfe-commits mailing list