diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-18 04:43:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-18 04:43:06 +0000 |
commit | 1a924e770ad01b524d7477473a1ded63c90242aa (patch) | |
tree | 90fa3eaa6a10abfc4c8b04086fb1f8a836b9040e /llvm/lib/CodeGen | |
parent | 8488640da7f65d06703b53eddf1f36ba8f216072 (diff) | |
download | bcm5719-llvm-1a924e770ad01b524d7477473a1ded63c90242aa.tar.gz bcm5719-llvm-1a924e770ad01b524d7477473a1ded63c90242aa.zip |
prevent jump threading from merging blocks when their address is
taken (and used!). This prevents merging the blocks (invalidating
the block addresses) in a case like this:
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
void foo() {
printf("%p\n", _THIS_IP_);
printf("%p\n", _THIS_IP_);
printf("%p\n", _THIS_IP_);
}
which fixes PR4151.
llvm-svn: 125829
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions