summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-22 16:07:55 +0000
committerDan Gohman <gohman@apple.com>2008-08-22 16:07:55 +0000
commit14714cb4fa932a07bc5100b973af358533c87956 (patch)
treed517c5fa254fe7e90d7a1bf424bd769b8200566d /llvm/lib/CodeGen/IfConversion.cpp
parent87fc5a5e6b9c021dc8e6aaa6c80d218ac4ea1970 (diff)
downloadbcm5719-llvm-14714cb4fa932a07bc5100b973af358533c87956.tar.gz
bcm5719-llvm-14714cb4fa932a07bc5100b973af358533c87956.zip
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. llvm-svn: 55181
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r--llvm/lib/CodeGen/IfConversion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp
index d98b0ceb2dd..079b7016480 100644
--- a/llvm/lib/CodeGen/IfConversion.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud