[PATCH] D20428: Tracking exception specification source locations

don hinton via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 8 13:04:47 PDT 2016


hintonda added a comment.

The comment says to rebuild TypeSourceInfo, but isn't that what this does?

  if (TSInfo->getType() != FD->getType())
    Updated = getFunctionTypeWithExceptionSpec(*this, TSInfo->getType(), ESI);
  TSInfo->overrideType(Updated);

If so, could you fix this by either removing the assert or moving it below

  TSInfo->overrideType(Updated);


http://reviews.llvm.org/D20428





More information about the cfe-commits mailing list