aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-02-27 14:58:02 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-02-27 14:58:02 -0500
commit6e2a67724c576420c1c0f005ccebdc6b0e708724 (patch)
treeb0ce3a75a10248bcbc0350afd83928f7a88baea1 /src/analyze.cpp
parentc2f5634fb3df51622cf74f23b4ae0d4a7d2bbbe9 (diff)
downloadzig-6e2a67724c576420c1c0f005ccebdc6b0e708724.tar.gz
zig-6e2a67724c576420c1c0f005ccebdc6b0e708724.zip
Revert "another llvm workaround for getelementptr"
This reverts commit c2f5634fb3df51622cf74f23b4ae0d4a7d2bbbe9. It doesn't work. With this, LLVM moves the allocate fn call to after llvm.coro.begin
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 9c5e4ffdde..26924cc7db 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -5821,11 +5821,3 @@ bool type_is_global_error_set(TypeTableEntry *err_set_type) {
uint32_t get_coro_frame_align_bytes(CodeGen *g) {
return g->pointer_size_bytes * 2;
}
-
-uint32_t workaround_struct_gep_hash(WorkaroundStructGEPId x) {
- return ptr_hash(x.struct_ptr_type) ^ x.index;
-}
-
-bool workaround_struct_gep_eq(WorkaroundStructGEPId a, WorkaroundStructGEPId b) {
- return a.struct_ptr_type == b.struct_ptr_type && a.index == b.index;
-}