View | Details | Raw Unified | Return to bug 213217
Collapse All | Expand All

(-)contrib/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp (-1 / +2 lines)
Lines 551-557 Link Here
551
551
552
      // If the first dir in the search path is a non-system dir, zap it
552
      // If the first dir in the search path is a non-system dir, zap it
553
      // instead of the system one.
553
      // instead of the system one.
554
      if (SearchList[FirstDir].getDirCharacteristic() == SrcMgr::C_User)
554
      if (SearchList[FirstDir].getDirCharacteristic() == SrcMgr::C_User ||
555
          CurEntry.getDirCharacteristic() == SrcMgr::C_ExternCSystem)
555
        DirToRemove = FirstDir;
556
        DirToRemove = FirstDir;
556
    }
557
    }
557
558

Return to bug 213217