================ @@ -711,8 +711,12 @@ void LoopConvertCheck::doConversion( if (const auto *Paren = Parents[0].get<ParenExpr>()) { // Usage.Expression will be replaced with the new index variable, // and parenthesis around a simple DeclRefExpr can always be - // removed. - Range = Paren->getSourceRange(); + // removed except in case of a `sizeof` operator call. + auto GrandParents = Context->getParents(*Paren); ---------------- EugeneZelenko wrote:
Please do not use `auto` unless type is explicitly spelled in same statement or iterator. https://github.com/llvm/llvm-project/pull/82166 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits