summaryrefslogtreecommitdiff
path: root/lib/Parse/ParseTentative.cpp
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2017-05-18 18:51:09 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2017-05-18 18:51:09 +0000
commit3022dac388832e0bb669821e6677abd5cb8a8784 (patch)
tree56b8e786a48b3a0f55d90117a0e7aeea60860e48 /lib/Parse/ParseTentative.cpp
parentb7f27dbfdd43a5f42cc6f263eb50c22677eb4cb6 (diff)
downloadclang-3022dac388832e0bb669821e6677abd5cb8a8784.tar.gz
CodeGen: Cast alloca to expected address space
Alloca always returns a pointer in alloca address space, which may be different from the type defined by the language. For example, in C++ the auto variables are in the default address space. Therefore cast alloca to the expected address space when necessary. Differential Revision: https://reviews.llvm.org/D32248 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseTentative.cpp')
0 files changed, 0 insertions, 0 deletions