Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CGDeclCXX.cpp | ||
---|---|---|
574 | This isn't quite true -- it's enforced by sema for user code, but not for code that identifies itself as a system header. I see that this is existing code that's moved around a bit, but we may want to add an assertion here just in case. |
LGTM.
clang/lib/CodeGen/CGDeclCXX.cpp | ||
---|---|---|
663 | Just noting that this trunk of code have very similar logic counter part in EmitCXXGlobalInitFunc. It seems there is no easy way to common them up given the current way of implementing it. It may require a non-trivial amount of refactoring for us to common up the similar logic between init and cleanup. |
clang/lib/CodeGen/CGDeclCXX.cpp | ||
---|---|---|
663 | Yes, I thought about this as well but it looks if we'd like to common it up, we may need to create some template function. |
This isn't quite true -- it's enforced by sema for user code, but not for code that identifies itself as a system header. I see that this is existing code that's moved around a bit, but we may want to add an assertion here just in case.