Skip to content

Commit 6869b6a

Browse files
committed
Simplification noticed by Chris.
llvm-svn: 130864
1 parent a16fc2f commit 6869b6a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,9 +2158,8 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,
21582158
case X86::BI__builtin_ia32_movntpd:
21592159
case X86::BI__builtin_ia32_movntdq:
21602160
case X86::BI__builtin_ia32_movnti: {
2161-
llvm::SmallVector<Value *, 1> Elts;
2162-
Elts.push_back(llvm::ConstantInt::get(Int32Ty, 1));
2163-
llvm::MDNode *Node = llvm::MDNode::get(getLLVMContext(), Elts);
2161+
llvm::MDNode *Node = llvm::MDNode::get(getLLVMContext(),
2162+
Builder.getInt32(1));
21642163

21652164
// Convert the type of the pointer to a pointer to the stored type.
21662165
Value *BC = Builder.CreateBitCast(Ops[0],

0 commit comments

Comments
 (0)