Index: src/IceCfg.cpp |
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
index 23c363fa7791938a5a05a0edfc6adaf72167f48b..275bb091e5d45f42b4de4f9a07f3d6d9ae70a8e1 100644 |
--- a/src/IceCfg.cpp |
+++ b/src/IceCfg.cpp |
@@ -803,7 +803,7 @@ void Cfg::sortAndCombineAllocas(CfgVector<InstAlloca *> &Allocas, |
uint32_t Align1 = A1->getAlignInBytes(); |
uint32_t Align2 = A2->getAlignInBytes(); |
if (Align1 == Align2) |
- return A1->getNumber() > A2->getNumber(); |
+ return A1->getNumber() < A2->getNumber(); |
else |
return Align1 > Align2; |
}); |