From: Artyom Skrobov Date: Fri, 27 Nov 2015 16:20:34 +0000 (+0000) Subject: Follow-up fix for r254201 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1a4a4976d27c9e07f6f561cdecd7ddd46a357fec;p=oota-llvm.git Follow-up fix for r254201 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254202 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index 2a41c5cb60f..61141c0031d 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -133,7 +133,7 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Combine a new optimization goal with existing ones. if (OptimizationGoals == -1) // uninitialized goals OptimizationGoals = OptimizationGoal; - else if (OptimizationGoals != OptimizationGoal) // conflicting goals + else if (OptimizationGoals != (int)OptimizationGoal) // conflicting goals OptimizationGoals = 0; if (Subtarget->isTargetCOFF()) {