update comment.
authorChris Lattner <sabre@nondot.org>
Mon, 30 Mar 2009 20:44:04 +0000 (20:44 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Mar 2009 20:44:04 +0000 (20:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68060 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/PointerUnion.h

index da67c8e8c27b8aab06592cb40f22fef07931347c..6f5d01af86af35784626a86f6aab9d62c05ddb18 100644 (file)
@@ -54,7 +54,7 @@ namespace llvm {
   ///    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.