@@ -70,10 +70,10 @@ class WinEHStatePass : public FunctionPass {
7070 bool isStateStoreNeeded (EHPersonality Personality, CallBase &Call);
7171 void rewriteSetJmpCall (IRBuilder<> &Builder, Function &F, CallBase &Call,
7272 Value *State);
73- int getBaseStateForBB (BlockColorMapT &BlockColors,
74- WinEHFuncInfo &FuncInfo, BasicBlock *BB);
75- int getStateForCall (BlockColorMapT &BlockColors,
76- WinEHFuncInfo &FuncInfo, CallBase &Call);
73+ int getBaseStateForBB (BlockColorMapT &BlockColors, WinEHFuncInfo &FuncInfo,
74+ BasicBlock *BB);
75+ int getStateForCall (BlockColorMapT &BlockColors, WinEHFuncInfo &FuncInfo,
76+ CallBase &Call);
7777
7878 // Module-level type getters.
7979 Type *getEHLinkRegistrationType ();
@@ -500,9 +500,8 @@ void WinEHStatePass::rewriteSetJmpCall(IRBuilder<> &Builder, Function &F,
500500}
501501
502502// Figure out what state we should assign calls in this block.
503- int WinEHStatePass::getBaseStateForBB (
504- BlockColorMapT &BlockColors, WinEHFuncInfo &FuncInfo,
505- BasicBlock *BB) {
503+ int WinEHStatePass::getBaseStateForBB (BlockColorMapT &BlockColors,
504+ WinEHFuncInfo &FuncInfo, BasicBlock *BB) {
506505 int BaseState = ParentBaseState;
507506 auto &BBColors = BlockColors[BB];
508507
@@ -519,9 +518,8 @@ int WinEHStatePass::getBaseStateForBB(
519518}
520519
521520// Calculate the state a call-site is in.
522- int WinEHStatePass::getStateForCall (
523- BlockColorMapT &BlockColors, WinEHFuncInfo &FuncInfo,
524- CallBase &Call) {
521+ int WinEHStatePass::getStateForCall (BlockColorMapT &BlockColors,
522+ WinEHFuncInfo &FuncInfo, CallBase &Call) {
525523 if (auto *II = dyn_cast<InvokeInst>(&Call)) {
526524 // Look up the state number of the EH pad this unwinds to.
527525 assert (FuncInfo.InvokeStateMap .count (II) && " invoke has no state!" );
0 commit comments