diff options
| author | Filipe Cabecinhas <me@filcab.net> | 2016-06-05 18:43:33 +0000 |
|---|---|---|
| committer | Filipe Cabecinhas <me@filcab.net> | 2016-06-05 18:43:33 +0000 |
| commit | 036e73c8bf7b4944a89b7ed5deae4825e22f59f6 (patch) | |
| tree | 4c6d9d7c82f126834303fe9925bc40addd79c3f7 /llvm/lib/Bitcode | |
| parent | fc2a3c98e959be27e87d8b09b6579fc4fb0381d8 (diff) | |
| download | bcm5719-llvm-036e73c8bf7b4944a89b7ed5deae4825e22f59f6.tar.gz bcm5719-llvm-036e73c8bf7b4944a89b7ed5deae4825e22f59f6.zip | |
[BitCode] Make sure storeatomic's argument is an actual PointerType
llvm-svn: 271850
Diffstat (limited to 'llvm/lib/Bitcode')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index c66b60681e5..4eda9d6c9ad 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -5259,6 +5259,7 @@ std::error_code BitcodeReader::parseFunctionBody(Function *F) { unsigned OpNum = 0; Value *Val, *Ptr; if (getValueTypePair(Record, OpNum, NextValueNo, Ptr) || + !isa<PointerType>(Ptr->getType()) || (BitCode == bitc::FUNC_CODE_INST_STOREATOMIC ? getValueTypePair(Record, OpNum, NextValueNo, Val) : popValue(Record, OpNum, NextValueNo, |

