[llvm-dev] -Wmisleading-indentation violations
Dan Liew via llvm-dev
llvm-dev at lists.llvm.org
Thu Jun 2 10:58:00 PDT 2016
Using the correct e-mail address this time.
> ```
> /home/dsl11/dev/llvm-upstream/src/lib/Transforms/Scalar/LoopStrengthReduce.cpp:
> In member function ‘void {anonymous}::Cost::RateRegister(const
> llvm::SCEV*, llvm::SmallPtrSetImpl<const llvm::SCEV*>&, const
> llvm::Loop*, llvm::ScalarEvolution&, llvm::DominatorTree&)’:
>
> /home/dsl11/dev/llvm-upstream/src/lib/Transforms/Scalar/LoopStrengthReduce.cpp:943:3:
> warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
>
> if (!isa<SCEVUnknown>(Reg) &&
>
> ^~
>
> /home/dsl11/dev/llvm-upstream/src/lib/Transforms/Scalar/LoopStrengthReduce.cpp:950:5:
> note: ...this statement, but the latter is misleadingly
>
> indented as if it is guarded by the ‘if’
>
> NumIVMuls += isa<SCEVMulExpr>(Reg) &&
>
> ^~~~~~~~~
> ```
More information about the llvm-dev
mailing list