diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-02-02 18:31:58 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-02-02 18:31:58 +0000 |
commit | 9013c4b3b11d6173fee5e49f895ffcde056ecaf6 (patch) | |
tree | 12631d765f668d2074f06718f01ae0107b0a8ed6 /llvm/lib/CodeGen/MachineBlockPlacement.cpp | |
parent | 71db64258db6d6ae80f4b0dc3bc17bc4596c29a8 (diff) | |
download | bcm5719-llvm-9013c4b3b11d6173fee5e49f895ffcde056ecaf6.tar.gz bcm5719-llvm-9013c4b3b11d6173fee5e49f895ffcde056ecaf6.zip |
Debug Info: Relax assertion in isUnsignedDIType() to allow floats to be
described by integer constants. This is a bit ugly, but if the source
language allows arbitrary type casting, the debug info must follow suit.
For example:
void foo() {
float a;
*(int *)&a = 0;
}
For the curious: SROA replaces the float alloca with an i32 alloca, which
is then optimized away and described via dbg.value(i32 0, ...).
llvm-svn: 227827
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions