OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7af453a
)
type can be null
author
Chris Lattner
<sabre@nondot.org>
Thu, 7 Jul 2011 05:29:18 +0000
(
05:29
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 7 Jul 2011 05:29:18 +0000
(
05:29
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134601
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.h
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.h
b/lib/Bitcode/Reader/BitcodeReader.h
index
1fa6f82
..
14033b0
100644
(file)
--- a/
lib/Bitcode/Reader/BitcodeReader.h
+++ b/
lib/Bitcode/Reader/BitcodeReader.h
@@
-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);
}