Shift and setcc types default to the pointer type.
authorChris Lattner <sabre@nondot.org>
Sun, 16 Jan 2005 23:59:48 +0000 (23:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Jan 2005 23:59:48 +0000 (23:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19619 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/TargetLowering.cpp

index b4d4a170b368d102683f6dff8b7a5d4121309fd7..dd8c084a597945899923f5c5bc8ddc77f2e34516 100644 (file)
@@ -24,7 +24,7 @@ TargetLowering::TargetLowering(TargetMachine &tm)
   memset(OpActions, 0, sizeof(OpActions));
 
   IsLittleEndian = TD.isLittleEndian();
-  PointerTy = getValueType(TD.getIntPtrType());
+  ShiftAmountTy = SetCCResultTy = PointerTy = getValueType(TD.getIntPtrType());
   memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
 }