-
Notifications
You must be signed in to change notification settings - Fork 31
[MRE] successive Declare fails if InstantiateFunctionDefinition fails in MakeFunctionCallable #616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… in MakeFunctionCallable
clang-tidy review says "All clean, LGTM! 👍" |
Summary of conversion had over discord: |
c2130c8
to
58d155a
Compare
clang-tidy review says "All clean, LGTM! 👍" |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #616 +/- ##
==========================================
+ Coverage 77.66% 77.85% +0.18%
==========================================
Files 9 9
Lines 3743 3748 +5
==========================================
+ Hits 2907 2918 +11
+ Misses 836 830 -6
🚀 New features to boost your workflow:
|
clang-tidy review says "All clean, LGTM! 👍" |
GeneratedPTU.takeError(), llvm::errs(), | ||
"[MakeFunctionCallable -> InstantiateFunctionDefinition] Failed to " | ||
"generate PTU:"); | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to move this somewhere in InstantiateTemplate
and replace S.InstantiateFunctionDefinition
with it?
This is a bug report.
If the instantiation of a templated function fails while CodeGen (
MakeFunctionCallable
), then successive call toCpp::Declare
fails.But a second call to
Cpp::Declare
will pass.I suspect something similar to
is required?