HomePhabricator

The following code would not work before this patch, due to the inability to…

Description

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

Details

Committed
lerochrisApr 22 2016, 1:13 AM
Parents
rL267119: Add missing include of <algorithm>
Branches
Unknown
Tags
Unknown