diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index c2f1ebd122a91ae10a9e49a5b5b73d595a8dc782..46546177ae5c2ce57d8f8558d484130a104f222a 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],