https://bugs.llvm.org/show_bug.cgi?id=38107
Eli Friedman <efrie...@codeaurora.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
CC| |efrie...@codeaurora.org
--- Comment #2 from Eli Friedman <efrie...@codeaurora.org> ---
Pointer subtraction is UB if the result pointer doesn't point to the same
object as the argument pointer. Given "p" and "p-1" are pointers to the same
object, neither one can be null.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs