diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-31 18:31:03 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-31 18:31:03 +0000 |
commit | da84b25b13f05b94c6c9478b1bc552054756759e (patch) | |
tree | 99ab16143a3a1363f6b603d539f41f38670dafb2 | |
parent | 431efa19aa18c854a95ec14adf6d6c2c314b91c9 (diff) | |
download | llvm-da84b25b13f05b94c6c9478b1bc552054756759e.tar.gz llvm-da84b25b13f05b94c6c9478b1bc552054756759e.tar.bz2 llvm-da84b25b13f05b94c6c9478b1bc552054756759e.tar.xz |
Stop guessing, start thinking, and make PointerUnion3::is actually be correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68126 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/PointerUnion.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/ADT/PointerUnion.h b/include/llvm/ADT/PointerUnion.h index 0737000c47..1075711ec0 100644 --- a/include/llvm/ADT/PointerUnion.h +++ b/include/llvm/ADT/PointerUnion.h @@ -183,9 +183,7 @@ namespace llvm { // Is it PT1/PT2? if (::llvm::getPointerUnionTypeNum<PT1, PT2>((T*)0) != -1) return Val.is<InnerUnion>() && Val.get<InnerUnion>().is<T>(); - // Must be PT3 or statically invalid. - assert(Val.is<T>()); - return true; + return Val.is<T>(); } /// get<T>() - Return the value of the specified pointer type. If the |