[llvm-commits] [llvm] r129186 - /llvm/trunk/include/llvm/Support/Casting.h
Chris Lattner
sabre at nondot.org
Fri Apr 8 19:33:30 PDT 2011
Author: lattner
Date: Fri Apr 8 21:33:29 2011
New Revision: 129186
URL: http://llvm.org/viewvc/llvm-project?rev=129186&view=rev
Log:
fix doc comment bug, noticed by Jochen
Modified:
llvm/trunk/include/llvm/Support/Casting.h
Modified: llvm/trunk/include/llvm/Support/Casting.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Casting.h?rev=129186&r1=129185&r2=129186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Casting.h (original)
+++ llvm/trunk/include/llvm/Support/Casting.h Fri Apr 8 21:33:29 2011
@@ -192,8 +192,8 @@
// 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()
//
More information about the llvm-commits
mailing list