Index: src/IceCfg.cpp |
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
index d55f79bc75c01dc6304a72fc733ed28e29a7a33d..eace318238bdbc28c61e05fad28d411a84619f55 100644 |
--- a/src/IceCfg.cpp |
+++ b/src/IceCfg.cpp |
@@ -897,7 +897,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; |
}); |