[PATCH] D153146: [CLANG] Fix potential integer overflow value in getRVVTypeSize()

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 21 05:29:53 PDT 2023


erichkeane added inline comments.


================
Comment at: clang/lib/AST/ASTContext.cpp:9567
 
   unsigned EltSize = Context.getTypeSize(Info.ElementType);
   unsigned MinElts = Info.EC.getKnownMinValue();
----------------
I think  I'd suggest just changing the types of these two variables instead of the cast.  


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153146/new/

https://reviews.llvm.org/D153146



More information about the cfe-commits mailing list