[SEH] Fix llvm.eh.exceptioncode fast register allocation assertion
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAGISel.cpp
index bd60bba318cbebcbe0a261fe6b8aa5b9cfa59f5b..0df05683b4f16d2ec0f5a13cd782a3043a154957 100644 (file)
@@ -950,7 +950,7 @@ bool SelectionDAGISel::PrepareEHLandingPad() {
       // the live in physreg and copy into the vreg.
       MCPhysReg EHPhysReg = TLI->getExceptionPointerRegister();
       assert(EHPhysReg && "target lacks exception pointer register");
-      FuncInfo->ExceptionPointerVirtReg = MBB->addLiveIn(EHPhysReg, PtrRC);
+      MBB->addLiveIn(EHPhysReg);
       unsigned VReg = FuncInfo->getCatchPadExceptionPointerVReg(CPI, PtrRC);
       BuildMI(*MBB, FuncInfo->InsertPt, SDB->getCurDebugLoc(),
               TII->get(TargetOpcode::COPY), VReg)