File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5968,10 +5968,11 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
5968
5968
} else {
5969
5969
ResTypeID = getContainedTypeID (OpTypeID);
5970
5970
Ty = getTypeByID (ResTypeID);
5971
- if (!Ty)
5972
- return error (" Missing element type for old-style load" );
5973
5971
}
5974
5972
5973
+ if (!Ty)
5974
+ return error (" Missing load type" );
5975
+
5975
5976
if (Error Err = typeCheckLoadStoreInst (Ty, Op->getType ()))
5976
5977
return Err;
5977
5978
@@ -6006,10 +6007,11 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
6006
6007
} else {
6007
6008
ResTypeID = getContainedTypeID (OpTypeID);
6008
6009
Ty = getTypeByID (ResTypeID);
6009
- if (!Ty)
6010
- return error (" Missing element type for old style atomic load" );
6011
6010
}
6012
6011
6012
+ if (!Ty)
6013
+ return error (" Missing atomic load type" );
6014
+
6013
6015
if (Error Err = typeCheckLoadStoreInst (Ty, Op->getType ()))
6014
6016
return Err;
6015
6017
You can’t perform that action at this time.
0 commit comments