diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-07 17:41:00 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-07 17:41:00 +0000 |
commit | 867bfc53ee5424b467302f319a1a9215ca7f1752 (patch) | |
tree | 35427a9447e8995de9812bca3171edfad8f28b79 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | c6bf34418acc32f220ed352246e0768fe250550f (diff) | |
download | bcm5719-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/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d8b79ac476a..a0cd6ff9032 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1936,7 +1936,7 @@ SDNode *SelectionDAGISel::Select_INLINEASM(SDNode *N) { std::vector<SDValue> Ops(N->op_begin(), N->op_end()); SelectInlineAsmMemoryOperands(Ops); - EVT VTs[] = { MVT::Other, MVT::Glue }; + const EVT VTs[] = {MVT::Other, MVT::Glue}; SDValue New = CurDAG->getNode(ISD::INLINEASM, SDLoc(N), VTs, Ops); New->setNodeId(-1); return New.getNode(); |