mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
[BitCode] Make sure storeatomic's argument is an actual PointerType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271850 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user