summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-01-07 04:31:35 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-01-07 04:31:35 +0000
commit0e90f46e10920140c7aa44330cffc9e9e0e01701 (patch)
tree3faf15a6191fae2d740e7eb48d2a7e7a82341a7c /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
parenta09245cddb17fd7d3771cc1668d89ff2f52e3e71 (diff)
downloadbcm5719-llvm-0e90f46e10920140c7aa44330cffc9e9e0e01701.tar.gz
bcm5719-llvm-0e90f46e10920140c7aa44330cffc9e9e0e01701.zip
Undo spurious change made in r256965
llvm-svn: 257028
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp3
1 files changed, 1 insertions, 2 deletions
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<const LandingPadInst *, 4> 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))
OpenPOWER on IntegriCloud