mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 09:51:30 +00:00
Add testing for mismatched explicit type on a gep operator when loading from bitcode
llvm-svn: 232427
This commit is contained in:
1 parent
3fc1563ad7
commit
12cf5d70e8
3 files changed
+5
-1
No files matched your search
@@ -1973,7 +1973,8 @@ std::error_code BitcodeReader::ParseConstants() {
|
||||
bitc::CST_CODE_CE_INBOUNDS_GEP);
|
||||
if (PointeeType &&
|
||||
PointeeType != cast<GEPOperator>(V)->getSourceElementType())
|
||||
return Error("Invalid record");
|
||||
return Error("Explicit gep operator type does not match pointee type "
|
||||
"of pointer operand");
|
||||
break;
|
||||
}
|
||||
case bitc::CST_CODE_CE_SELECT: { // CE_SELECT: [opval#, opval#, opval#]
|
||||
|
||||
Reference in new issue
Block a user