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 c2f1ebd1..4654617 100644
--- a/lib/CodeGen/CGBuiltin.cpp
+++ b/lib/CodeGen/CGBuiltin.cpp
@@ -2158,9 +2158,8 @@
case X86::BI__builtin_ia32_movntpd:
case X86::BI__builtin_ia32_movntdq:
case X86::BI__builtin_ia32_movnti: {
- llvm::SmallVector<Value *, 1> 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],