llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

makeNull needs deprecation in favor of makeNullWithType

Open vabridgers opened this issue 4 years ago • 3 comments

A recent issue uncovered with address spaces and the CString Checker exposed the need to deprecate makeNull in SValBuilder in favor of a method to make a null pointer that "right sized" per the prototype pointer's address space. See https://reviews.llvm.org/D118050 for details of the problem.

This will involve the following steps:

  1. Replace instances of makeNull with makeNullWithType
  2. Replace instances of makeIntValWithPtrWidth with a more appropriate method to comprehend expected pointer size
  3. Replace instances of getIntWithPtrWidth with a more appropriate method to comprehend expected pointer size

vabridgers avatar Feb 08 '22 22:02 vabridgers

+1

steakhal avatar Feb 09 '22 07:02 steakhal

Only the first patch has landed out of three if I'm correct.

steakhal avatar Mar 22 '22 12:03 steakhal

The rest of the patchset has landed.

steakhal avatar Apr 26 '22 06:04 steakhal