Added missing &. Fixes <rdar://problem/10393723>
authorPete Cooper <peter_cooper@apple.com>
Fri, 4 Nov 2011 23:49:14 +0000 (23:49 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 4 Nov 2011 23:49:14 +0000 (23:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143753 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/IfConversion.cpp

index ce7ed293daacdd0cf14b774d4d1af1b83b570ad1..d888939d4c27d6f30b0880b7ddce6867ec9ca49e 100644 (file)
@@ -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.