mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
type can be null
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7af453a3bd
commit
cbd40f8357
@ -212,7 +212,7 @@ public:
|
||||
private:
|
||||
const Type *getTypeByID(unsigned ID, bool isTypeTable = false);
|
||||
Value *getFnValueByID(unsigned ID, const Type *Ty) {
|
||||
if (Ty->isMetadataTy())
|
||||
if (Ty && Ty->isMetadataTy())
|
||||
return MDValueList.getValueFwdRef(ID);
|
||||
return ValueList.getValueFwdRef(ID, Ty);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user