Displaying 1 result from an estimated 1 matches for "r129186".
Did you mean:
129186
2011 Apr 07
1
[LLVMdev] description of llvm::cast correct?
Hi!
in the description of llvm::cast it says:
But it will correctly return NULL when the input is NULL.
And in the description of llvm::cast_or_null it says:
Functionally identical to cast, except that a null value is accepted
This sounds to me as if both functions accept a null pointer.
What is then the difference between cast and cast_or_null?
-Jochen