r210042 - [CodeGen] Don't use SizeTy for EmitNeonSplat.

Michael J. Spencer bigcheesegs at gmail.com
Mon Jun 2 12:48:59 PDT 2014


Author: mspencer
Date: Mon Jun  2 14:48:59 2014
New Revision: 210042

URL: http://llvm.org/viewvc/llvm-project?rev=210042&view=rev
Log:
[CodeGen] Don't use SizeTy for EmitNeonSplat.

Modified:
    cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=210042&r1=210041&r2=210042&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Mon Jun  2 14:48:59 2014
@@ -5232,7 +5232,7 @@ Value *CodeGenFunction::EmitAArch64Built
     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);
   }





More information about the cfe-commits mailing list