mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-29 16:29:00 -04:00

Fixes a problem when we have multiple inclusion cycles and try to enumerate all possible ways to reach the max inclusion depth. rdar://problem/38871876 Reviewers: bruno, rsmith, jkorous, aaron.ballman Reviewed By: bruno, jkorous, aaron.ballman Subscribers: dexonsmith, cfe-commits Differential Revision: https://reviews.llvm.org/D48786 llvm-svn: 337953
9 lines
226 B
C
9 lines
226 B
C
// Presence of 2 inclusion cycles
|
|
// b.h -> a.h -> b.h -> ...
|
|
// c.h -> a.h -> c.h -> ...
|
|
// makes it unfeasible to reach max inclusion depth in all possible ways. Need
|
|
// to stop earlier.
|
|
|
|
#include "b.h"
|
|
#include "c.h"
|