Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | CodeGen: Fix invalid bitcast for lifetime.start/end | Yaxun Liu | 2018-05-17 | 1 | -0/+27 |
lifetime.start/end expects pointer argument in alloca address space. However in C++ a temporary variable is in default address space. This patch changes API CreateMemTemp and CreateTempAlloca to get the original alloca instruction and pass it lifetime.start/end. It only affects targets with non-zero alloca address space. Differential Revision: https://reviews.llvm.org/D45900 llvm-svn: 332593 |