diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2009-05-28 04:08:10 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2009-05-28 04:08:10 +0000 |
| commit | 206876e2dabf2a1b4d1f72879afaf2419d6d9afd (patch) | |
| tree | 834426864694932a5669f4a74a4d8594e98cb370 /llvm/lib/Transforms | |
| parent | 5df7202d3bb44e51016f731dfd3dc4d7a52cc2d3 (diff) | |
| download | bcm5719-llvm-206876e2dabf2a1b4d1f72879afaf2419d6d9afd.tar.gz bcm5719-llvm-206876e2dabf2a1b4d1f72879afaf2419d6d9afd.zip | |
Use Operands.data() instead of &Operands[0] where Operands is a potentially
empty SmallVector.
llvm-svn: 72512
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index d2a70ea9d00..d73519c04e3 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1196,7 +1196,7 @@ CallOverdefined: // If we can constant fold this, mark the result of the call as a // constant. - if (Constant *C = ConstantFoldCall(F, &Operands[0], Operands.size())) { + if (Constant *C = ConstantFoldCall(F, Operands.data(), Operands.size())) { markConstant(I, C); return; } |

