[PPC] Add text for assert.

llvm-svn: 303940
This commit is contained in:
Tim Shen 2017-05-25 23:40:46 +00:00
parent f87197ad91
commit a76f20c364
1 changed files with 1 additions and 1 deletions

View File

@ -8296,7 +8296,7 @@ SDValue PPCTargetLowering::LowerINTRINSIC_VOID(SDValue Op,
SDLoc DL(Op);
switch (cast<ConstantSDNode>(Op.getOperand(ArgStart))->getZExtValue()) {
case Intrinsic::ppc_cfence: {
assert(ArgStart == 1);
assert(ArgStart == 1 && "llvm.ppc.cfence must carry a chain argument.");
assert(Subtarget.isPPC64() && "Only 64-bit is supported for now.");
return SDValue(DAG.getMachineNode(PPC::CFENCE8, DL, MVT::Other,
DAG.getNode(ISD::ANY_EXTEND, DL, MVT::i64,