Construct annotation, to make sure it's attached to function
llvm-svn: 4429
This commit is contained in:
parent
61fa909cc9
commit
7ee171b717
|
@ -32,7 +32,7 @@ namespace {
|
|||
/// the entire function.
|
||||
///
|
||||
bool runOnFunction(Function &Fn) {
|
||||
F = new MachineFunction(&Fn, TM);
|
||||
F = &MachineFunction::construct(&Fn, TM);
|
||||
visit(Fn);
|
||||
RegMap.clear();
|
||||
F = 0;
|
||||
|
|
Loading…
Reference in New Issue