mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 13:06:06 +00:00

The issue was introduced in D135801. When there are only header maps in the SearchDirs, the out of bounds value is assigned to FirstNonHeaderMapSearchDirIdx. Test Plan: check-clang Differential Revision: https://reviews.llvm.org/D146156
6 lines
242 B
C
6 lines
242 B
C
// RUN: rm -rf %t && mkdir %t
|
|
// RUN: %hmaptool write %S/Inputs/header-search-crash/foo.hmap.json %t/foo.hmap
|
|
// RUN: %clang -cc1 -E %s -I %t/foo.hmap -verify
|
|
|
|
#include "MissingHeader.h" // expected-error {{'MissingHeader.h' file not found}}
|