From c6035cff5545c9f4b033439b282e45032caa6f5f Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Sun, 15 Feb 2015 15:47:52 +0000 Subject: [PATCH] [ADCE] Fix formatting of pointer types We prefer to put the * with the variable, not with the type; NFC. llvm-svn: 229317 --- llvm/lib/Transforms/Scalar/ADCE.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp index 4a00321..06a4dd9 100644 --- a/llvm/lib/Transforms/Scalar/ADCE.cpp +++ b/llvm/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); } -- 2.7.4