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 | e3f1fb1ee862a9a54c4a22f579460ac1e968b3d6 (patch) | |
tree | d7b0e8325bb32b120ff47265ba1cdcacb61eb2ad /test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll | |
parent | ad75460e30aab135057355fa0712141bf2cb08fc (diff) | |
download | external_llvm-e3f1fb1ee862a9a54c4a22f579460ac1e968b3d6.zip external_llvm-e3f1fb1ee862a9a54c4a22f579460ac1e968b3d6.tar.gz external_llvm-e3f1fb1ee862a9a54c4a22f579460ac1e968b3d6.tar.bz2 |
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
Diffstat (limited to 'test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll')
-rw-r--r-- | test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll b/test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll new file mode 100644 index 0000000..480aca0 --- /dev/null +++ b/test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll @@ -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(...) |