ABataev added inline comments.

> Type.h:1381
>      /// regparm and the calling convention.
> -    unsigned ExtInfo : 9;
> +    unsigned ExtInfo : 10;
>  

Erich, do you really need this? You don't increase number of required bits 
anymore, so this code must be restored

> Type.h:2909-2921
> +    // Feel free to rearrange or add bits, but if you go over 10,
>      // you'll need to adjust both the Bits field below and
>      // Type::FunctionTypeBitfields.
>  
>      //   |  CC  |noreturn|produces|regparm|
> -    //   |0 .. 3|   4    |    5   | 6 .. 8|
> +    //   |0 .. 4|   5    |    6   | 7 .. 9|
>      //

Also, you don't need these changes anymore

> MicrosoftMangle.cpp:434
> +
> +  if (auto FD = dyn_cast<FunctionDecl>(D))
> +    if (FD->getType()->castAs<FunctionType>()->getCallConv() ==

`auto*`

> CodeGenModule.cpp:686
>      assert(II && "Attempt to mangle unnamed decl.");
> -    Str = II->getName();
> +    const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND);
> +

`const auto *FD`

> ABataev wrote in TargetInfo.cpp:1546-1548
> Seems to me this code is clang-formatted

I mean, did you try to reformat the whole `return` statement? It looks ugly

> rnk wrote in TargetInfo.cpp:3321
> variable naming

I believe the whole patch must be `clang-tide`d

https://reviews.llvm.org/D25204



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

Reply via email to