summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-09 02:33:29 +0000
committerChris Lattner <sabre@nondot.org>2011-04-09 02:33:29 +0000
commit0359101df2ef11cff92204899e50043838214cc3 (patch)
tree40fadd0de8cedebab2dfe035144c1963ac7b85ff
parent41c80e89f38605baa06365d87f6fe6742ae2dec4 (diff)
downloadbcm5719-llvm-0359101df2ef11cff92204899e50043838214cc3.tar.gz
bcm5719-llvm-0359101df2ef11cff92204899e50043838214cc3.zip
fix doc comment bug, noticed by Jochen
llvm-svn: 129186
-rw-r--r--llvm/include/llvm/Support/Casting.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/Casting.h b/llvm/include/llvm/Support/Casting.h
index 6bb98064382..abb5a9aa11d 100644
--- a/llvm/include/llvm/Support/Casting.h
+++ b/llvm/include/llvm/Support/Casting.h
@@ -192,8 +192,8 @@ template<class To, class FromTy> struct cast_convert_val<To,FromTy,FromTy> {
// cast<X> - Return the argument parameter cast to the specified type. This
// casting operator asserts that the type is correct, so it does not return null
-// on failure. But it will correctly return NULL when the input is NULL.
-// Used Like this:
+// on failure. It does not allow a null argument (use cast_or_null for that).
+// It is typically used like this:
//
// cast<Instruction>(myVal)->getParent()
//
OpenPOWER on IntegriCloud