summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2011-11-04 23:49:14 +0000
committerPete Cooper <peter_cooper@apple.com>2011-11-04 23:49:14 +0000
commit9c58aa743d5232a3eb78c0ee329281709a50b2f6 (patch)
tree83fceb6cf18628bc1cd06265fc7382d214df263b
parentbd00a934c653fb1666fa7d18267644b4e9d14e5e (diff)
downloadllvm-9c58aa743d5232a3eb78c0ee329281709a50b2f6.tar.gz
llvm-9c58aa743d5232a3eb78c0ee329281709a50b2f6.tar.bz2
llvm-9c58aa743d5232a3eb78c0ee329281709a50b2f6.tar.xz
Added missing &. Fixes <rdar://problem/10393723>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143753 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/IfConversion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp
index ce7ed293da..d888939d4c 100644
--- a/lib/CodeGen/IfConversion.cpp
+++ b/lib/CodeGen/IfConversion.cpp
@@ -1319,7 +1319,7 @@ bool IfConverter::IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind,
// fold the tail block in as well. Otherwise, unless it falls through to the
// tail, add a unconditional branch to it.
if (TailBB) {
- BBInfo TailBBI = BBAnalysis[TailBB->getNumber()];
+ BBInfo &TailBBI = BBAnalysis[TailBB->getNumber()];
bool CanMergeTail = !TailBBI.HasFallThrough;
// There may still be a fall-through edge from BBI1 or BBI2 to TailBB;
// check if there are any other predecessors besides those.