use a more efficient check for 'is metadata'
llvm-svn: 134599
This commit is contained in:
parent
1d4313b261
commit
cdfcc2dee6
|
@ -212,9 +212,8 @@ public:
|
|||
private:
|
||||
const Type *getTypeByID(unsigned ID, bool isTypeTable = false);
|
||||
Value *getFnValueByID(unsigned ID, const Type *Ty) {
|
||||
if (Ty == Type::getMetadataTy(Context))
|
||||
if (Ty->isMetadataTy())
|
||||
return MDValueList.getValueFwdRef(ID);
|
||||
else
|
||||
return ValueList.getValueFwdRef(ID, Ty);
|
||||
}
|
||||
BasicBlock *getBasicBlock(unsigned ID) const {
|
||||
|
|
Loading…
Reference in New Issue