From 72920ec9ad6322d0f69e76090bda3468a35b5b82 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 7 Jan 2016 04:31:35 +0000 Subject: [PATCH] Undo spurious change made in r256965 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257028 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index be5a7034be4..08815ed787d 100644 --- a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -271,8 +271,6 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf, } } - WinEHFuncInfo &EHInfo = *MF->getWinEHFuncInfo(); - // Mark landing pad blocks. SmallVector LPads; for (BB = Fn->begin(); BB != EB; ++BB) { @@ -291,6 +289,7 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf, return; // Calculate state numbers if we haven't already. + WinEHFuncInfo &EHInfo = *MF->getWinEHFuncInfo(); if (Personality == EHPersonality::MSVC_CXX) calculateWinCXXEHStateNumbers(&fn, EHInfo); else if (isAsynchronousEHPersonality(Personality)) -- 2.34.1