diff options
author | Lang Hames <lhames@gmail.com> | 2015-04-07 06:27:56 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-04-07 06:27:56 +0000 |
commit | 2be1bbea7ec6f74f1415912005c05992548d06b6 (patch) | |
tree | 7151400c7eaa89270c8fbb984af13977d9da1ee8 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | ed96cb7fc6843b016219e893584e61b729159005 (diff) | |
download | bcm5719-llvm-2be1bbea7ec6f74f1415912005c05992548d06b6.tar.gz bcm5719-llvm-2be1bbea7ec6f74f1415912005c05992548d06b6.zip |
[RuntimeDyld] Always allocate at least 1 byte for object sections in the JIT to
ensure that section addresses are distinct.
mapSectionAddress will fail if two sections are allocated the same address,
which can happen if any section has zero size (since malloc(0) is implementation
defined). Unfortunately I've been unable to repro this with a simple test case.
Fixes <rdar://problem/20314015>.
llvm-svn: 234299
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions