summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-07 17:41:00 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-07 17:41:00 +0000
commit867bfc53ee5424b467302f319a1a9215ca7f1752 (patch)
tree35427a9447e8995de9812bca3171edfad8f28b79 /llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
parentc6bf34418acc32f220ed352246e0768fe250550f (diff)
downloadbcm5719-llvm-867bfc53ee5424b467302f319a1a9215ca7f1752.tar.gz
bcm5719-llvm-867bfc53ee5424b467302f319a1a9215ca7f1752.zip
Make constant arrays that are passed to functions as const.
In theory this allows the compiler to skip materializing the array on the stack. In practice clang often fails to do that, but that's a different story. NFC. llvm-svn: 231571
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 6ebf640e0b7..a32055df19f 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -3086,7 +3086,7 @@ SDNode *ARMDAGToDAGISel::Select(SDNode *N) {
// Store exclusive double return a i32 value which is the return status
// of the issued store.
- EVT ResTys[] = { MVT::i32, MVT::Other };
+ const EVT ResTys[] = {MVT::i32, MVT::Other};
bool isThumb = Subtarget->isThumb() && Subtarget->hasThumb2();
// Place arguments in the right order.
OpenPOWER on IntegriCloud