From 6869b6abf88d6b6d0d909a2a8c35c70750938c12 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 4 May 2011 20:28:12 +0000 Subject: [PATCH] Simplification noticed by Chris. llvm-svn: 130864 --- clang/lib/CodeGen/CGBuiltin.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index c2f1ebd122a9..46546177ae5c 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/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], -- GitLab