aaron.ballman added a comment.

One thing this patch does not do but needs to is fix 
`ASTContext::adjustExceptionSpec()` (Thanks to Don Hinton for pointing this out 
off-list!), however, I am at a bit of a loss for how best to rebuild the type 
location.

Would it be correct to call `CreateTypeSourceInfo(Updated)` to get a new 
TypeSourceInfo object of the proper size, then `initializeFullCopy()` the new 
type location object from the old one, and call `setExceptionSpecRange()` to 
update the source range information on the new type loc object? (The range 
would have to be passed to `adjustExceptionSpec()`.) Or is there a better way 
to perform this rebuilding?


http://reviews.llvm.org/D20428



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to