[CodeGen] Don't use SizeTy for EmitNeonSplat.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 2 Jun 2014 19:48:59 +0000 (19:48 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 2 Jun 2014 19:48:59 +0000 (19:48 +0000)
llvm-svn: 210042

clang/lib/CodeGen/CGBuiltin.cpp

index 9714534..8b62ef0 100644 (file)
@@ -5232,7 +5232,7 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
     Ty = llvm::PointerType::getUnqual(VTy->getElementType());
     Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
     Ops[0] = Builder.CreateLoad(Ops[0]);
-    llvm::Constant *CI = ConstantInt::get(SizeTy, 0);
+    llvm::Constant *CI = ConstantInt::get(Int32Ty, 0);
     Ops[0] = Builder.CreateInsertElement(V, Ops[0], CI);
     return EmitNeonSplat(Ops[0], CI);
   }