mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 05:31:43 +00:00
[BitCode] Make sure storeatomic's argument is an actual PointerType
llvm-svn: 271850
This commit is contained in:
1 parent
fc2a3c98e9
commit
036e73c8bf
3 files changed
+6
No files matched your search
@@ -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