@@ -6506,9 +6506,6 @@ bool LLParser::parseInvoke(Instruction *&Inst, PerFunctionState &PFS) {
6506
6506
if (I != E)
6507
6507
return error (CallLoc, " not enough parameters specified for call" );
6508
6508
6509
- if (FnAttrs.hasAlignmentAttr ())
6510
- return error (CallLoc, " invoke instructions may not have an alignment" );
6511
-
6512
6509
// Finish off the Attribute and check them
6513
6510
AttributeList PAL =
6514
6511
AttributeList::get (Context, AttributeSet::get (Context, FnAttrs),
@@ -6822,9 +6819,6 @@ bool LLParser::parseCallBr(Instruction *&Inst, PerFunctionState &PFS) {
6822
6819
if (I != E)
6823
6820
return error (CallLoc, " not enough parameters specified for call" );
6824
6821
6825
- if (FnAttrs.hasAlignmentAttr ())
6826
- return error (CallLoc, " callbr instructions may not have an alignment" );
6827
-
6828
6822
// Finish off the Attribute and check them
6829
6823
AttributeList PAL =
6830
6824
AttributeList::get (Context, AttributeSet::get (Context, FnAttrs),
@@ -7220,9 +7214,6 @@ bool LLParser::parseCall(Instruction *&Inst, PerFunctionState &PFS,
7220
7214
if (I != E)
7221
7215
return error (CallLoc, " not enough parameters specified for call" );
7222
7216
7223
- if (FnAttrs.hasAlignmentAttr ())
7224
- return error (CallLoc, " call instructions may not have an alignment" );
7225
-
7226
7217
// Finish off the Attribute and check them
7227
7218
AttributeList PAL =
7228
7219
AttributeList::get (Context, AttributeSet::get (Context, FnAttrs),
0 commit comments