From 0e90f46e10920140c7aa44330cffc9e9e0e01701 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 7 Jan 2016 04:31:35 +0000 Subject: Undo spurious change made in r256965 llvm-svn: 257028 --- llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index be5a7034be4..08815ed787d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/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)) -- cgit v1.2.3