diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2012-10-13 02:30:10 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2012-10-13 02:30:10 +0000 |
| commit | eea8a482183c7e20cb79d229216a78b321ec3c7f (patch) | |
| tree | 6cb998e6cf5e804946ceafa409ec43c898e524ba /compiler-rt/lib/ubsan/ubsan_value.cc | |
| parent | f402f78eb7c259501b0924a54e7e5d94c3b40949 (diff) | |
| download | bcm5719-llvm-eea8a482183c7e20cb79d229216a78b321ec3c7f.tar.gz bcm5719-llvm-eea8a482183c7e20cb79d229216a78b321ec3c7f.zip | |
Fix the bootstrap of CompilerRT with host compilers that don't support
emulating 128-bit arithmetic on 32-bit x86 targets. This should get the
bootstrap back for GCC 4.6 at least.
Suggestions on better ways to do the detection here are welcome...
llvm-svn: 165863
Diffstat (limited to 'compiler-rt/lib/ubsan/ubsan_value.cc')
| -rw-r--r-- | compiler-rt/lib/ubsan/ubsan_value.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/ubsan/ubsan_value.cc b/compiler-rt/lib/ubsan/ubsan_value.cc index 0b368953e12..3d6a73548f4 100644 --- a/compiler-rt/lib/ubsan/ubsan_value.cc +++ b/compiler-rt/lib/ubsan/ubsan_value.cc @@ -27,7 +27,7 @@ SIntMax Value::getSIntValue() const { } if (getType().getIntegerBitWidth() == 64) return *reinterpret_cast<s64*>(Val); -#ifdef HAVE_INT128_T +#if HAVE_INT128_T if (getType().getIntegerBitWidth() == 128) return *reinterpret_cast<s128*>(Val); #endif @@ -40,7 +40,7 @@ UIntMax Value::getUIntValue() const { return Val; if (getType().getIntegerBitWidth() == 64) return *reinterpret_cast<u64*>(Val); -#ifdef HAVE_INT128_T +#if HAVE_INT128_T if (getType().getIntegerBitWidth() == 128) return *reinterpret_cast<u128*>(Val); #endif |

