[llvm-commits] [llvm] r124066 - /llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp

Frits van Bommel fvbommel at gmail.com
Sun Jan 23 03:48:04 PST 2011


On Sun, Jan 23, 2011 at 8:05 AM, Chris Lattner <sabre at nondot.org> wrote:
> -    void MarkUnsafe(AllocaInfo &I) { I.isUnsafe = true; }
> +    void MarkUnsafe(AllocaInfo &I, Instruction *User) {
> +      I.isUnsafe = true;
> +      DEBUG(dbgs() << "  Transformation preventing inst: " << *User << '\n');
> +    }

This should probably have a "(void)User;" somewhere to prevent
warnings in no-asserts mode.




More information about the llvm-commits mailing list