[PATCH] D16063: [Analyzer] Use a wider integer type for an array index

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 11 07:14:50 PST 2016


xazax.hun added a comment.

How is this array index type used? Should it support negative values? If the answer is no, ASTContext has a getSizeType method. If it is yes, it also has a getPointerDiffType method (although it returns a QualType not a CanQualType). Is there a reason not to use them?


Repository:
  rL LLVM

http://reviews.llvm.org/D16063





More information about the cfe-commits mailing list