diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:04:03 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:04:03 +0000 | 
| commit | f8af5cf600354830d4ccf59732403f0f073eccb9 (patch) | |
| tree | 2ba0398b4c42ad4f55561327538044fd2c925a8b /lib/CodeGen/MachineModuleInfo.cpp | |
| parent | 59d6cff90eecf31cb3dd860c4e786674cfdd42eb (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
| -rw-r--r-- | lib/CodeGen/MachineModuleInfo.cpp | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 8af9d053b12a..bb542845b984 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/lib/CodeGen/MachineModuleInfo.cpp @@ -253,13 +253,12 @@ void MMIAddrLabelMapCallbackPtr::allUsesReplacedWith(Value *V2) {  MachineModuleInfo::MachineModuleInfo(const MCAsmInfo &MAI,                                       const MCRegisterInfo &MRI,                                       const MCObjectFileInfo *MOFI) -  : ImmutablePass(ID), Context(MAI, MRI, MOFI, 0, false) { +  : ImmutablePass(ID), Context(&MAI, &MRI, MOFI, 0, false) {    initializeMachineModuleInfoPass(*PassRegistry::getPassRegistry());  }  MachineModuleInfo::MachineModuleInfo() -  : ImmutablePass(ID), -    Context(*(MCAsmInfo*)0, *(MCRegisterInfo*)0, (MCObjectFileInfo*)0) { +  : ImmutablePass(ID), Context(0, 0, 0) {    llvm_unreachable("This MachineModuleInfo constructor should never be called, "                     "MMI should always be explicitly constructed by "                     "LLVMTargetMachine"); @@ -303,7 +302,7 @@ bool MachineModuleInfo::doFinalization(Module &M) {  ///  void MachineModuleInfo::EndFunction() {    // Clean up frame info. -  FrameMoves.clear(); +  FrameInstructions.clear();    // Clean up exception info.    LandingPads.clear(); | 
