mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Use Operands.data() instead of &Operands[0] where Operands is a potentially
empty SmallVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72512 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ad75460e30
commit
e3f1fb1ee8
@ -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;
|
||||
}
|
||||
|
10
test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll
Normal file
10
test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll
Normal 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(...)
|
Loading…
x
Reference in New Issue
Block a user