diff options
author | Chris Dewhurst <chris.dewhurst@lero.ie> | 2016-04-22 08:13:47 +0000 |
---|---|---|
committer | Chris Dewhurst <chris.dewhurst@lero.ie> | 2016-04-22 08:13:47 +0000 |
commit | 431fc8af7bece9bfc733227218254b3d64d8a0f6 (patch) | |
tree | 695579b352acd6a4496068ab0ac3744049a11739 /llvm/lib/CodeGen/PHIElimination.cpp | |
parent | f8997cf5aee8b4bf0210ca156e1b2fbb8cf6bc07 (diff) | |
download | bcm5719-llvm-431fc8af7bece9bfc733227218254b3d64d8a0f6.tar.gz bcm5719-llvm-431fc8af7bece9bfc733227218254b3d64d8a0f6.zip |
The following code would not work before this patch, due to the inability to take the address of a global object:
void func1() {
...
}
int main(int argc, char** argv) {
void (*pFunc)();
pFunc = &func1
pFunc();
...
}
Phabricator review: http://reviews.llvm.org/D19368
llvm-svn: 267120
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.cpp')
0 files changed, 0 insertions, 0 deletions