diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-12-05 01:02:46 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-12-05 01:02:46 +0000 |
commit | ab255fcd09a6fac10e597fbd8f92fd70dd321a6d (patch) | |
tree | 37c838dfdc1bbb26efbb7eb9515980e6ed159ab6 /clang/lib/Basic/Targets.cpp | |
parent | c29be67009382658bfe8b33a44630dcb52823d8a (diff) | |
download | bcm5719-llvm-ab255fcd09a6fac10e597fbd8f92fd70dd321a6d.tar.gz bcm5719-llvm-ab255fcd09a6fac10e597fbd8f92fd70dd321a6d.zip |
Cleanup: Calls to getDwarfRegNum() may actually fail, if there is
no DWARF register number mapping, or if the register was a virtual
register that was never materialized. Previously, we would just emit a
bogus location, after this patch we don't emit a location at all by
doing an early exit.
After my bugfix in r223401 today, this doesn't actually happen on any
target that I tested this with, but it's still preferable to make the
possibility of a failure explicit.
llvm-svn: 223428
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions