Fix DDFuzz instrumentation (#2134)

This commit is contained in:
Dongjia "toka" Zhang 2024-05-02 20:00:51 +02:00 committed by GitHub
parent 02ef0c4dda
commit 2e81dc6c59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -738,7 +738,7 @@ class DDGInstrModulePass : public PassInfoMixin<DDGInstrModulePass> {
} }
if (HashedLoc == nullptr) continue; if (HashedLoc == nullptr) continue;
HashedLoc = IRB.CreateZExt(HashedLoc, IRB.getInt32Ty()); HashedLoc = IRB.CreateZExt(HashedLoc, IRB.getInt16Ty());
LoadInst *MapPtr = LoadInst *MapPtr =
IRB.CreateLoad(PointerType::get(Int8Ty, 0), DDGMapPtr); IRB.CreateLoad(PointerType::get(Int8Ty, 0), DDGMapPtr);