From: Hal Finkel Date: Sun, 15 Feb 2015 15:47:52 +0000 (+0000) Subject: [ADCE] Fix formatting of pointer types X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4090dfd7ba0f78676124c74923b1c7460a541cb5;p=oota-llvm.git [ADCE] Fix formatting of pointer types We prefer to put the * with the variable, not with the type; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229317 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 4a003217f93..06a4dd975b1 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -69,10 +69,10 @@ bool ADCE::runOnFunction(Function& F) { // Propagate liveness backwards to operands. while (!Worklist.empty()) { - Instruction* Curr = Worklist.pop_back_val(); + Instruction *Curr = Worklist.pop_back_val(); for (Instruction::op_iterator OI = Curr->op_begin(), OE = Curr->op_end(); OI != OE; ++OI) - if (Instruction* Inst = dyn_cast(OI)) + if (Instruction *Inst = dyn_cast(OI)) if (Alive.insert(Inst).second) Worklist.push_back(Inst); }