mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
IRCanonicalization: Add MakeLocalVariables pass
This commit is contained in:
committed by
Pietro Fezzardi
parent
da46b38644
commit
f7866ddd85
@@ -287,6 +287,12 @@ static TypeVector getReturnTypes(const llvm::CallInst *Call,
|
||||
ReturnTypes.push_back(It->second);
|
||||
}
|
||||
|
||||
} else if (FunctionTags::LocalVariable.isTagOf(CalledFunc)) {
|
||||
StringRef StringOp = extractFromConstantStringPtr(Call->getArgOperand(0));
|
||||
const model::QualifiedType VarType = parseQualifiedType(StringOp, Model);
|
||||
|
||||
ReturnTypes.push_back(VarType);
|
||||
|
||||
} else if (FunctionTags::StructInitializer.isTagOf(CalledFunc)) {
|
||||
// Struct initializers are only used to pack together return values of
|
||||
// RawFunctionTypes that return multiple values, therefore they have the
|
||||
|
||||
Reference in New Issue
Block a user