benlangmuir added a comment.

This doesn't appear to be a safe change.  We can't assume that `RootName` 
wouldn't ever be legitimately found somewhere in a path (even without a VFS) 
and changing the path prefix could give a completely different location.  I 
would also be concerned about the performance impact of performing two lookups, 
since finding a module for a header is not always a cheap operation.

I'm not sure off hand how else to fix this.


http://reviews.llvm.org/D18849



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

Reply via email to