empty SmallVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72512
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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;
}
--- /dev/null
+; 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(...)