[opaque pointer types] Pass value type to LoadInst creation.
This cleans up all LoadInst creation in LLVM to explicitly pass the value type rather than deriving it from the pointer's element-type. Differential Revision: https://reviews.llvm.org/D57172 llvm-svn: 352911
This commit is contained in:
@@ -4404,7 +4404,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
|
||||
unsigned Align;
|
||||
if (Error Err = parseAlignmentValue(Record[OpNum], Align))
|
||||
return Err;
|
||||
I = new LoadInst(Op, "", Record[OpNum+1], Align, Ordering, SSID);
|
||||
I = new LoadInst(Ty, Op, "", Record[OpNum + 1], Align, Ordering, SSID);
|
||||
|
||||
InstructionList.push_back(I);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user