[Metadata] Replace a SmallVector with an array; NFC

MDNode::get takes an ArrayRef, so these should be equivalent.

llvm-svn: 339824
This commit is contained in:
George Burgess IV 2018-08-15 22:15:35 +00:00
parent 9eb111566e
commit 3083105b81
1 changed files with 4 additions and 3 deletions

View File

@ -260,8 +260,9 @@ MDNode *MDBuilder::createMutableTBAAAccessTag(MDNode *Tag) {
}
MDNode *MDBuilder::createIrrLoopHeaderWeight(uint64_t Weight) {
SmallVector<Metadata *, 2> Vals(2);
Vals[0] = createString("loop_header_weight");
Vals[1] = createConstant(ConstantInt::get(Type::getInt64Ty(Context), Weight));
Metadata *Vals[] = {
createString("loop_header_weight"),
createConstant(ConstantInt::get(Type::getInt64Ty(Context), Weight)),
};
return MDNode::get(Context, Vals);
}