mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Add testing for mismatched explicit type on a gep operator when loading from bitcode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232427 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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