[AVR] Fix function pointer address space
authorVlastimil Labsky <vlasta.labsky@gmail.com>
Wed, 1 Apr 2020 08:05:45 +0000 (21:05 +1300)
committerDylan McKay <me@dylanmckay.io>
Wed, 1 Apr 2020 08:08:37 +0000 (21:08 +1300)
commit57fd86de879cf2b4c7001b6d0a09df60877ce24d
tree49bc9708e31df2c62004a2c170e09f872bc3ffce
parentfa1b602ee6c3bd3dc245cbafe7534be5381e71e7
[AVR] Fix function pointer address space

Summary:
Function pointers should be created with program address space.
This fixes function pointers on AVR.

Reviewers: dylanmckay

Reviewed By: dylanmckay

Subscribers: Jim, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77119
clang/lib/CodeGen/CodeGenTypes.cpp