Rework getWriteableModel to return a TupleTree

The previous design returned a model::Binary &, which did not allow
users writing the model to properly initialize cross references between
different parts of the model.
This commit is contained in:
Pietro Fezzardi
2021-06-09 15:21:04 +02:00
committed by Alessandro Di Federico
parent b4929b431c
commit 8fa8ca2d03
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -462,7 +462,7 @@ bool StackAnalysis::runOnModule(Module &M) {
serialize(pathToStream(ABIAnalysisOutputPath, Output));
}
commitToModel(GCBI, &F, GrandResult, LMP.getWriteableModel());
commitToModel(GCBI, &F, GrandResult, *LMP.getWriteableModel());
return false;
}