aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/MachineCodeForInstruction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/SparcV9/MachineCodeForInstruction.cpp')
-rw-r--r--lib/Target/SparcV9/MachineCodeForInstruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.cpp b/lib/Target/SparcV9/MachineCodeForInstruction.cpp
index 96cedbaced..44cf57247f 100644
--- a/lib/Target/SparcV9/MachineCodeForInstruction.cpp
+++ b/lib/Target/SparcV9/MachineCodeForInstruction.cpp
@@ -35,11 +35,11 @@ using namespace llvm;
MachineCodeForInstruction &MachineCodeForInstruction::get(const Instruction *I){
MachineFunction &MF = MachineFunction::get(I->getParent()->getParent());
- return MF.getInfo()->MCFIEntries[I];
+ return MF.getInfo<SparcV9FunctionInfo>()->MCFIEntries[I];
}
void MachineCodeForInstruction::destroy(const Instruction *I) {
MachineFunction &MF = MachineFunction::get(I->getParent()->getParent());
- MF.getInfo()->MCFIEntries.erase(I);
+ MF.getInfo<SparcV9FunctionInfo>()->MCFIEntries.erase(I);
}
void