Created attachment 16957 [details] Reproducer The new assert/check added in r278659 triggers when building a normal(?) c file from compiler-rt/sanitizer. I attach a reduced example: > llc -filetype=obj err_278659.ll LLVM ERROR: out of range pc-relative fixup value
Also broke ARM's self-hosting bot: http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-a15-full-sh/builds/3918 "fatal error: error in backend: out of range pc-relative fixup value" in: FAILED: /home/linaro/devel/buildbot/clang-cmake-thumbv7-a15-full-sh/stage1.install/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I/home/linaro/devel/buildbot/clang-cmake-thumbv7-a15-full-sh/llvm/lib/Support -Iinclude -I/home/linaro/devel/buildbot/clang-cmake-thumbv7-a15-full-sh/llvm/include -mcpu=cortex-a15 -mthumb -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -O3 -UNDEBUG -fno-exceptions -fno-rtti -MMD -MT lib/Support/CMakeFiles/LLVMSupport.dir/ScaledNumber.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/ScaledNumber.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/ScaledNumber.cpp.o -c /home/linaro/devel/buildbot/clang-cmake-thumbv7-a15-full-sh/llvm/lib/Support/ScaledNumber.cpp
Now resolved in r278789.