diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-05-04 20:28:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-05-04 20:28:12 +0000 |
commit | b107dd02f5e365f60b036b8a27c784f2d0d0a855 (patch) | |
tree | d9b43e29ba0a972c48a358dc0d10db62988d763e | |
parent | f7faee03e671d7ac088951ed187e6f867e2255a5 (diff) |
Simplification noticed by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130864 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CGBuiltin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<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], |