[PATCH] D52253: Fix an assert in the implementation of -Wquoted-include-in-framework-header

Erik Pilkington via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 18 17:44:33 PDT 2018


erik.pilkington added inline comments.


================
Comment at: clang/lib/Lex/HeaderSearch.cpp:670
     if (IsIncludeeInFramework) {
       NewInclude += StringRef(ToFramework).drop_back(10); // drop .framework
       NewInclude += "/";
----------------
Crash was here, if ToFramework is empty because no "Foo.framework" entry found in the path.


Repository:
  rC Clang

https://reviews.llvm.org/D52253





More information about the cfe-commits mailing list