Skip to content

release/19.x: [analyzer] Add missing include <unordered_map> to llvm/lib/Support/Z3Solver.cpp (#106410) #106525

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

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Aug 29, 2024

Backport fcb3a04

Requested by: @tamird

@llvmbot llvmbot added this to the LLVM 19.X Release milestone Aug 29, 2024
@llvmbot
Copy link
Member Author

llvmbot commented Aug 29, 2024

@tamird What do you think about merging this PR to the release branch?

@llvmbot
Copy link
Member Author

llvmbot commented Aug 29, 2024

@llvm/pr-subscribers-llvm-support

Author: None (llvmbot)

Changes

Backport fcb3a04

Requested by: @tamird


Full diff: https://github.com/llvm/llvm-project/pull/106525.diff

1 Files Affected:

  • (modified) llvm/lib/Support/Z3Solver.cpp (+1)
diff --git a/llvm/lib/Support/Z3Solver.cpp b/llvm/lib/Support/Z3Solver.cpp
index 5a34ff160f6cf4..9aece099b06295 100644
--- a/llvm/lib/Support/Z3Solver.cpp
+++ b/llvm/lib/Support/Z3Solver.cpp
@@ -19,6 +19,7 @@ using namespace llvm;
 #include "llvm/ADT/Twine.h"
 
 #include <set>
+#include <unordered_map>
 
 #include <z3.h>
 

…Solver.cpp (llvm#106410)

Resolves llvm#106361. Adding #include <unordered_map> to
llvm/lib/Support/Z3Solver.cpp fixes compilation errors for homebrew
build on macOS with Xcode 14.
https://github.com/Homebrew/homebrew-core/actions/runs/10604291631/job/29390993615?pr=181351
shows that this is resolved when the include is patched in (Linux CI
failure is due to unrelated timeout).

(cherry picked from commit fcb3a04)
@tru tru merged commit 894ec4e into llvm:release/19.x Sep 1, 2024
8 of 9 checks passed
Copy link

github-actions bot commented Sep 1, 2024

@tamird (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants