From: Bill Wendling Date: Wed, 4 May 2011 20:28:12 +0000 (+0000) Subject: Simplification noticed by Chris. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b107dd02f5e365f60b036b8a27c784f2d0d0a855;p=clang Simplification noticed by Chris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130864 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index c2f1ebd122..46546177ae 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -2158,9 +2158,8 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID, case X86::BI__builtin_ia32_movntpd: case X86::BI__builtin_ia32_movntdq: case X86::BI__builtin_ia32_movnti: { - llvm::SmallVector Elts; - Elts.push_back(llvm::ConstantInt::get(Int32Ty, 1)); - llvm::MDNode *Node = llvm::MDNode::get(getLLVMContext(), Elts); + llvm::MDNode *Node = llvm::MDNode::get(getLLVMContext(), + Builder.getInt32(1)); // Convert the type of the pointer to a pointer to the stored type. Value *BC = Builder.CreateBitCast(Ops[0],