1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Use Operands.data() instead of &Operands[0] where Operands is a potentially

empty SmallVector.

llvm-svn: 72512
This commit is contained in:
Nick Lewycky 2009-05-28 04:08:10 +00:00
parent 9928c800a4
commit 3dd0d690f3
2 changed files with 11 additions and 1 deletions

View File

@ -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;
}

View File

@ -0,0 +1,10 @@
; RUN: llvm-as < %s | opt -sccp -disable-output
; PR4277
define i32 @main() nounwind {
entry:
%0 = tail call signext i8 (...)* @sin() nounwind
ret i32 0
}
declare signext i8 @sin(...)