diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-22 16:07:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-22 16:07:55 +0000 |
commit | 1501cdbf63cff3afd92df6cd249096770334b268 (patch) | |
tree | 4bd8c7134277e2a860214aa80bb833260a8337b7 /lib/CodeGen/IfConversion.cpp | |
parent | 969a46a948414734f5bc01994e54d88d153cb3fb (diff) |
Fix SmallVector's size calculation so that a size of 0 is
handled correctly, and change a few SmallVector uses to use
size 0 to more clearly reflect their intent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | lib/CodeGen/IfConversion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index d98b0ceb2d..079b701648 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -815,7 +815,7 @@ void IfConverter::InvalidatePreds(MachineBasicBlock *BB) { /// static void InsertUncondBranch(MachineBasicBlock *BB, MachineBasicBlock *ToBB, const TargetInstrInfo *TII) { - SmallVector<MachineOperand, 1> NoCond; + SmallVector<MachineOperand, 0> NoCond; TII->InsertBranch(*BB, ToBB, NULL, NoCond); } |