[PATCH] D60974: Clang IFSO driver action.
Saleem Abdulrasool via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 13:00:39 PDT 2019
compnerd accepted this revision.
compnerd added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp:91
+ std::vector<std::string> MangledNames = CGNameGen.getAllManglings(ND);
+ if (isa<CXXConstructorDecl>(ND) || isa<CXXDestructorDecl>(ND)) {
+ if (MangledNames.size() == 1)
----------------
I don't understand this clause. The structurors will always have 2 manglings (both itanium and MSVC use multiple, I don't remember the SUN and GNU variants off the top of my head). Adding the assert for the non-structor case is fine, but please wrap the entire thing in an `LLVM_EXPENSIVE_ASSERT`.
================
Comment at: clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp:116
+ if (RDO & IsLate) {
+ llvm_unreachable("Generating Interface Stubs is not supported with "
+ "delayed template parsing.");
----------------
This really should emit a diagnostic. The `CompilerInstance` should have a reference to the `DiagnosticsEngine`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60974/new/
https://reviews.llvm.org/D60974
More information about the llvm-commits
mailing list