The UnknownProvenance indicates that the provenance can be any object. This must only be used in the ptr_provenance path of a pointer.
Diff Detail
Event Timeline
- Small cleanup of useless comment
- NOTE: The LangeRef change explaining the purpose of unknown_provenance is done in D104268
Thanks for the feedback !
llvm/include/llvm-c/Core.h | ||
---|---|---|
1942 | Ah.. The implementation is in D111162, but I had to move the header earlier for the enum. Probably better to just add the implementation in this revision.. | |
llvm/include/llvm/IR/Constants.h | ||
580 | Yes it is. That's what I get for copy-pasting from ConstantPointerNull.. |
llvm/include/llvm-c/Core.h | ||
---|---|---|
1942 | I'm not sure what the policy is here, but I would think that we should avoid adding stuff in the header when using them will only lead to a linker error. But in this case, it seems that you have all the pieces to add this, at least the llvm/lib/IR/Core.cpp part. | |
llvm/include/llvm/IR/Constants.h | ||
580 | I think it'd be better to just remove it, as to not spread erroneous patterns (inline is notoriously misunderstood by many C/C++ devs). But either way, this is certainly not worth blocking that patch for this. |
I would like to have all patches reviewed and accepted before I start merging them into the main tree.
Where is the implementation for these?