diff --git a/include/llvm/ADT/PointerUnion.h b/include/llvm/ADT/PointerUnion.h index 0737000c47c..1075711ec0c 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