To solve the compilation errors after supporting llvm-16#806
Merged
fabianbs96 merged 4 commits intosecure-software-engineering:developmentfrom Dec 18, 2025
Merged
To solve the compilation errors after supporting llvm-16#806fabianbs96 merged 4 commits intosecure-software-engineering:developmentfrom
fabianbs96 merged 4 commits intosecure-software-engineering:developmentfrom
Conversation
…quires std::derived_from<ConcreteEF, ConstantEdgeFunction<L>> so Clang-llvm@16 can compile
Contributor
Author
|
FYI, when compiling with Docker, these errors do not occur because the Docker script uses clang-19. I’m not sure whether this is intended, but I encountered these errors because I was using clang corresponding to LLVM 16. |
Member
|
Hi @kynehc, --- a/include/phasar/DataFlow/IfdsIde/EdgeFunctionUtils.h
+++ b/include/phasar/DataFlow/IfdsIde/EdgeFunctionUtils.h
@@ -60,8 +60,7 @@ template <typename L> struct ConstantEdgeFunction {
template <typename ConcreteEF>
[[nodiscard]] static EdgeFunction<l_t>
- join(EdgeFunctionRef<ConcreteEF> This,
- const EdgeFunction<l_t> &OtherFunction)
+ join(EdgeFunctionRef<ConcreteEF> This, const EdgeFunction<l_t> &OtherFunction)
requires std::derived_from<ConcreteEF, ConstantEdgeFunction<L>>;
[[nodiscard]] constexpr bool isConstant() const noexcept { return true; }
@@ -447,7 +446,8 @@ template <typename ConcreteEF>
EdgeFunction<L>
ConstantEdgeFunction<L>::compose(EdgeFunctionRef<ConcreteEF> This,
const EdgeFunction<L> &SecondFunction)
- requires std::derived_from<ConcreteEF, ConstantEdgeFunction<L>> {
+ requires std::derived_from<ConcreteEF, ConstantEdgeFunction<L>>
+{
if (auto Default = defaultComposeOrNull(This, SecondFunction)) {
return Default;
}
@@ -489,7 +489,8 @@ template <typename ConcreteEF>
EdgeFunction<L>
ConstantEdgeFunction<L>::join(EdgeFunctionRef<ConcreteEF> This,
const EdgeFunction<l_t> &OtherFunction)
- requires std::derived_from<ConcreteEF, ConstantEdgeFunction<L>> {
+ requires std::derived_from<ConcreteEF, ConstantEdgeFunction<L>>
+{
if (auto Default = defaultJoinOrNull<l_t>(This, OtherFunction)) {
return Default;
} |
055babd
into
secure-software-engineering:development
9 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After supporting llvm-16, I encounter the following errors during compilation:
This PR can fix these errors and pass the compilation.