[llvm-commits] [llvm] r68060 - /llvm/trunk/include/llvm/ADT/PointerUnion.h

Chris Lattner sabre at nondot.org
Mon Mar 30 13:44:07 PDT 2009


Author: lattner
Date: Mon Mar 30 15:44:04 2009
New Revision: 68060

URL: http://llvm.org/viewvc/llvm-project?rev=68060&view=rev
Log:
update comment.

Modified:
    llvm/trunk/include/llvm/ADT/PointerUnion.h

Modified: llvm/trunk/include/llvm/ADT/PointerUnion.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PointerUnion.h?rev=68060&r1=68059&r2=68060&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/PointerUnion.h (original)
+++ llvm/trunk/include/llvm/ADT/PointerUnion.h Mon Mar 30 15:44:04 2009
@@ -54,7 +54,7 @@
   ///    printf("%d %d", P.is<int*>(), P.is<float*>());  // prints "1 0"
   ///    X = P.get<int*>();     // ok.
   ///    Y = P.get<float*>();   // runtime assertion failure.
-  ///    Z = P.get<double*>();  // does not compile.
+  ///    Z = P.get<double*>();  // runtime assertion failure (regardless of tag)
   ///    P = (float*)0;
   ///    Y = P.get<float*>();   // ok.
   ///    X = P.get<int*>();     // runtime assertion failure.





More information about the llvm-commits mailing list