malavikasamak added inline comments.
================ Comment at: clang/lib/Analysis/UnsafeBufferUsage.cpp:156 + // 2. the operand of a cast-to-(Integer or Boolean) operation; or + // 3. the operand of a pointer subtraction operation; or + // 4. the operand of a pointer comparison operation; or ---------------- malavikasamak wrote: > I don't understand why we are special handling only pointer subtraction here. > Won't pointer addition be also considered UPC? If so, can we just add it to > this patch. Never mind. It looks like pointer addition is not even legal and subtraction is a special case. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144064/new/ https://reviews.llvm.org/D144064 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits