[PATCH] D142385: CoroFrame: Fix missing bitcast for some frame merges
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 15:31:49 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3013a94894d5: CoroFrame: Fix missing bitcast for some frame merges (authored by MatzeB).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142385/new/
https://reviews.llvm.org/D142385
Files:
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
Index: llvm/lib/Transforms/Coroutines/CoroFrame.cpp
===================================================================
--- llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -1634,7 +1634,7 @@
//
// Note: If we change the strategy dealing with alignment, we need to refine
// this casting.
- if (GEP->getResultElementType() != Orig->getType())
+ if (GEP->getType() != Orig->getType())
return Builder.CreateBitCast(GEP, Orig->getType(),
Orig->getName() + Twine(".cast"));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142385.491526.patch
Type: text/x-patch
Size: 603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230123/abcb379b/attachment.bin>
More information about the llvm-commits
mailing list