diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-02-01 01:33:42 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-02-01 01:33:42 +0000 |
commit | 28851b62cc64c9c48fcb22c182a66a9489900bd7 (patch) | |
tree | 3e5ee61df42217515416c1d77df8d61b9ae7e0e9 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | 31be598153924268f1f2c66055089e5eb3aec95e (diff) | |
download | bcm5719-llvm-28851b62cc64c9c48fcb22c182a66a9489900bd7.tar.gz bcm5719-llvm-28851b62cc64c9c48fcb22c182a66a9489900bd7.zip |
[TableGen] Store result of getInstructionsByEnumValue in an ArrayRef instead of accidentally copying to a vector.
llvm-svn: 259336
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 3ebe51e0512..0de3b61adf2 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -3249,7 +3249,7 @@ void CodeGenDAGPatterns::AddPatternToMatch(TreePattern *Pattern, void CodeGenDAGPatterns::InferInstructionFlags() { - const std::vector<const CodeGenInstruction*> &Instructions = + ArrayRef<const CodeGenInstruction*> Instructions = Target.getInstructionsByEnumValue(); // First try to infer flags from the primary instruction pattern, if any. |