projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a pair of use after free. Should bring the bots back.
[oota-llvm.git]
/
lib
/
CodeGen
/
LiveStackAnalysis.cpp
diff --git
a/lib/CodeGen/LiveStackAnalysis.cpp
b/lib/CodeGen/LiveStackAnalysis.cpp
index b3161a4597071b44225e30256e71b9b4400f9c82..68636609584a006a35babcb1f5d6dfc27ab2dc93 100644
(file)
--- a/
lib/CodeGen/LiveStackAnalysis.cpp
+++ b/
lib/CodeGen/LiveStackAnalysis.cpp
@@
-20,6
+20,7
@@
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetRegisterInfo.h"
+#include "llvm/Target/TargetSubtargetInfo.h"
#include <limits>
using namespace llvm;
#include <limits>
using namespace llvm;
@@
-49,7
+50,7
@@
void LiveStacks::releaseMemory() {
}
bool LiveStacks::runOnMachineFunction(MachineFunction &MF) {
}
bool LiveStacks::runOnMachineFunction(MachineFunction &MF) {
- TRI = MF.get
T
arget().getRegisterInfo();
+ TRI = MF.get
Subt
arget().getRegisterInfo();
// FIXME: No analysis is being done right now. We are relying on the
// register allocators to provide the information.
return false;
// FIXME: No analysis is being done right now. We are relying on the
// register allocators to provide the information.
return false;