[PATCH] D147520: Fix a time-trace issue of incorrect header hierarchy when a header contains a template function for its last symbol.
Ying Yi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 4 04:34:45 PDT 2023
MaggieYi added a comment.
A simple test to reproduce the issue:
% cat main.cpp
#include "1.h"
#include "2.h"
int foo();
% cat 1.h
template <typename T> auto Zero() -> T { return T{}; }
%cat 2.h
struct Bla {};
Compile the code with `-ftime-trace-granularity=0 -ftime-trace` to show the issue:
prospero-clang -ftime-trace-granularity=0 -ftime-trace main.cpp -c -o main.o
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147520/new/
https://reviews.llvm.org/D147520
More information about the cfe-commits
mailing list