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

Chris Lattner sabre at nondot.org
Sun Jan 23 10:06:05 PST 2011


On Jan 23, 2011, at 3:48 AM, Frits van Bommel wrote:

> 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.

I don't think it's needed here, it's an argument.

-Chris



More information about the llvm-commits mailing list