[PATCH] D25258: [coroutines] Create allocation and deallocation sub-statements.

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 4 16:37:53 PDT 2016


majnemer added inline comments.


> CGCoroutine.cpp:68-69
> +void CodeGenFunction::EmitCoroutineBody(const CoroutineBodyStmt &S) {
> +  auto *NullPtr = llvm::ConstantPointerNull::get(Builder.getInt8PtrTy());
> +  // FIXME: Instead of 0, pass an equivalent of alignas(maxalign_t).
> +  auto *CoroId =

I think that's just `CGM.getContext().getTargetInfo().getSuitableAlign() / CGM.getContext().getTargetInfo().getCharWidth()`

https://reviews.llvm.org/D25258





More information about the cfe-commits mailing list