[llvm-commits] [llvm] r134601 - /llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h
Chris Lattner
sabre at nondot.org
Wed Jul 6 22:29:18 PDT 2011
Author: lattner
Date: Thu Jul 7 00:29:18 2011
New Revision: 134601
URL: http://llvm.org/viewvc/llvm-project?rev=134601&view=rev
Log:
type can be null
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h?rev=134601&r1=134600&r2=134601&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h Thu Jul 7 00:29:18 2011
@@ -212,7 +212,7 @@
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);
}
More information about the llvm-commits
mailing list