Use typed GEP in modules.cpp (#4070)

This commit is contained in:
Nicholas Wilson 2022-08-28 21:18:51 +08:00 committed by GitHub
parent c9b902e670
commit 194dfc91f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,7 +268,8 @@ void addCoverageAnalysis(Module *m) {
init, "_d_cover_data");
d_cover_data_slice = DtoConstSlice(DtoConstSize_t(m->numlines),
DtoGEP(m->d_cover_data, 0, 0));
DtoGEP(m->d_cover_data->getValueType(),
m->d_cover_data, 0, 0));
}
// Create "static constructor" that calls _d_cover_register2(string filename,