mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Really, really fix PointerUnion3::is
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80c93e7442
commit
a7425d7fde
@ -182,7 +182,7 @@ namespace llvm {
|
|||||||
int is() const {
|
int is() const {
|
||||||
// Is it PT1/PT2?
|
// Is it PT1/PT2?
|
||||||
if (::llvm::getPointerUnionTypeNum<PT1, PT2>((T*)0) != -1)
|
if (::llvm::getPointerUnionTypeNum<PT1, PT2>((T*)0) != -1)
|
||||||
return Val.get<InnerUnion>().is<T>();
|
return Val.is<InnerUnion>() && Val.get<InnerUnion>().is<T>();
|
||||||
// Must be PT3 or statically invalid.
|
// Must be PT3 or statically invalid.
|
||||||
assert(Val.is<T>());
|
assert(Val.is<T>());
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user