mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
add helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2491e4657d
commit
ba315c1ee7
@ -78,6 +78,8 @@ namespace llvm {
|
||||
Val.setInt(1);
|
||||
}
|
||||
|
||||
bool isNull() const { return Val.getPointer() == 0; }
|
||||
|
||||
template<typename T>
|
||||
int is() const {
|
||||
return Val.getInt() == ::llvm::getPointerUnionTypeNum<PT1, PT2>((T*)0);
|
||||
|
Loading…
Reference in New Issue
Block a user