| Index: src/IceInstARM32.cpp
|
| diff --git a/src/IceInstARM32.cpp b/src/IceInstARM32.cpp
|
| index e95f6b111579c374e0cc8d35d2b744f78f783bfc..ddc94a7bf83669b79c1f3e14365d283b0207c013 100644
|
| --- a/src/IceInstARM32.cpp
|
| +++ b/src/IceInstARM32.cpp
|
| @@ -277,15 +277,17 @@ bool InstARM32Br::optimizeBranch(const CfgNode *NextNode) {
|
| return false;
|
| }
|
|
|
| -bool InstARM32Br::repointEdge(CfgNode *OldNode, CfgNode *NewNode) {
|
| +bool InstARM32Br::repointEdges(CfgNode *OldNode, CfgNode *NewNode) {
|
| + bool Found = false;
|
| if (TargetFalse == OldNode) {
|
| TargetFalse = NewNode;
|
| - return true;
|
| - } else if (TargetTrue == OldNode) {
|
| + Found = true;
|
| + }
|
| + if (TargetTrue == OldNode) {
|
| TargetTrue = NewNode;
|
| - return true;
|
| + Found = true;
|
| }
|
| - return false;
|
| + return Found;
|
| }
|
|
|
| InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget)
|
|
|