rsmith added a comment.

Can you find who's poisoning the `FileManager`'s idea of the name of the file 
with a full path to the VFS overlay and fix that?


================
Comment at: lib/Lex/HeaderSearch.cpp:1163
@@ +1162,3 @@
+    SmallString<256> RootName = StringRef(Root->getName());
+    path::remove_dots(RootName, true/*remove_dot_dot*/);
+    auto Pos = FileName.find(RootName);
----------------
remove_dot_dot=true is not a correct transformation to do to a path and can 
result in the wrong file being found.


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