summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2014-06-27 18:36:08 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2014-06-27 18:36:08 +0000
commit9832f7dc71a0b01cca69a5b9d99f8f0be4bf3368 (patch)
tree370d9b775c8d0b2effa3fcaa53fa4b799c2662f3 /lib
parentc95d327874fbd06df3cfe71dc3d0eb6c205681a8 (diff)
downloadllvm-9832f7dc71a0b01cca69a5b9d99f8f0be4bf3368.tar.gz
llvm-9832f7dc71a0b01cca69a5b9d99f8f0be4bf3368.tar.bz2
llvm-9832f7dc71a0b01cca69a5b9d99f8f0be4bf3368.tar.xz
[NVPTX] Handle all possible vector types in getSetCCResultType, not just the ones representable as MVTs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/NVPTX/NVPTXISelLowering.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelLowering.h b/lib/Target/NVPTX/NVPTXISelLowering.h
index 358f9f8c80..d311f681f3 100644
--- a/lib/Target/NVPTX/NVPTXISelLowering.h
+++ b/lib/Target/NVPTX/NVPTXISelLowering.h
@@ -202,9 +202,9 @@ public:
/// getFunctionAlignment - Return the Log2 alignment of this function.
unsigned getFunctionAlignment(const Function *F) const;
- EVT getSetCCResultType(LLVMContext &, EVT VT) const override {
+ EVT getSetCCResultType(LLVMContext &Ctx, EVT VT) const override {
if (VT.isVector())
- return MVT::getVectorVT(MVT::i1, VT.getVectorNumElements());
+ return EVT::getVectorVT(Ctx, MVT::i1, VT.getVectorNumElements());
return MVT::i1;
}