aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-08-21 21:30:23 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-08-21 21:30:23 +0000
commit296ca41b2d305f4aaf1d0562c7da90dc20cd9e14 (patch)
treeb358e64985c12d473aa7a61b2ed004fa491dcb67 /include/llvm/ADT
parentdd778b230e60092be1553461f68fa8ec37c5fdc0 (diff)
downloadexternal_llvm-296ca41b2d305f4aaf1d0562c7da90dc20cd9e14.zip
external_llvm-296ca41b2d305f4aaf1d0562c7da90dc20cd9e14.tar.gz
external_llvm-296ca41b2d305f4aaf1d0562c7da90dc20cd9e14.tar.bz2
Basic unit tests for PointerUnion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/PointerUnion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/PointerUnion.h b/include/llvm/ADT/PointerUnion.h
index 4eed121..05d362f 100644
--- a/include/llvm/ADT/PointerUnion.h
+++ b/include/llvm/ADT/PointerUnion.h
@@ -72,7 +72,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*>(); // runtime assertion failure (regardless of tag)
+ /// Z = P.get<double*>(); // compile time failure.
/// P = (float*)0;
/// Y = P.get<float*>(); // ok.
/// X = P.get<int*>(); // runtime assertion failure.