From: Craig Topper Date: Fri, 26 Apr 2019 16:39:35 +0000 (+0000) Subject: [X86] Segment registers should have i16 type not i32. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72692e8b5fc58af0dcd0c5070748dcfcdb0e19b4;p=llvm [X86] Segment registers should have i16 type not i32. Probably doesn't really matter, but was inconsistent with the rest of the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359317 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index c01bf4db303..55de3120b69 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -296,7 +296,7 @@ namespace { if (AM.Segment.getNode()) Segment = AM.Segment; else - Segment = CurDAG->getRegister(0, MVT::i32); + Segment = CurDAG->getRegister(0, MVT::i16); } // Utility function to determine whether we should avoid selecting