Reference the canonical commit (r175462) in the value casting release note.

llvm-svn: 175971
This commit is contained in:
David Blaikie 2013-02-23 19:30:31 +00:00
parent 6850acfcbb
commit 5352e644b3
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ instead of pointers or references - "T castAs" and "Optional<T> getAs" (in the
case of the TypeLoc hierarchy the latter is "T getAs" and you can use the
boolean testability of a TypeLoc (or its 'validity') to verify that the cast
succeeded). Essentially all previous 'cast' usage should be replaced with
'castAs' and 'dyn_cast' should be replaced with 'getAs'.
'castAs' and 'dyn_cast' should be replaced with 'getAs'. See r175462 for the
first example of such a change along with many examples of how code was
migrated to the new API.
API change 1
^^^^^^^^^^^^