diff options
author | Diana Picus <diana.picus@linaro.org> | 2017-02-02 14:00:54 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2017-02-02 14:00:54 +0000 |
commit | 0c11c7b5c74264354f94c3fd945366e8814d3186 (patch) | |
tree | 007f60c5adbfb110edb6077aba42dbbab4a5ff4c | |
parent | 7f4b26e189f84e1a6b283ffb91033f9121419d92 (diff) | |
download | bcm5719-llvm-0c11c7b5c74264354f94c3fd945366e8814d3186.tar.gz bcm5719-llvm-0c11c7b5c74264354f94c3fd945366e8814d3186.zip |
[ARM] GlobalISel: Error out instead of asserting
Allow unknown types in TLI.getValueType, otherwise we get asserts for certain
types that we do not support yet (instead of returning that we don't support
them and falling through the normal error path).
llvm-svn: 293888
-rw-r--r-- | llvm/lib/Target/ARM/ARMCallLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMCallLowering.cpp b/llvm/lib/Target/ARM/ARMCallLowering.cpp index 5a2ded2e4b7..c5b49ef70fd 100644 --- a/llvm/lib/Target/ARM/ARMCallLowering.cpp +++ b/llvm/lib/Target/ARM/ARMCallLowering.cpp @@ -33,7 +33,7 @@ ARMCallLowering::ARMCallLowering(const ARMTargetLowering &TLI) static bool isSupportedType(const DataLayout &DL, const ARMTargetLowering &TLI, Type *T) { - EVT VT = TLI.getValueType(DL, T); + EVT VT = TLI.getValueType(DL, T, true); if (!VT.isSimple() || !VT.isInteger() || VT.isVector()) return false; |