From da84b25b13f05b94c6c9478b1bc552054756759e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 31 Mar 2009 18:31:03 +0000 Subject: 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 --- include/llvm/ADT/PointerUnion.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/llvm/ADT/PointerUnion.h') 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((T*)0) != -1) return Val.is() && Val.get().is(); - // Must be PT3 or statically invalid. - assert(Val.is()); - return true; + return Val.is(); } /// get() - Return the value of the specified pointer type. If the -- cgit v1.2.3