[llvm-commits] [llvm] r55878 - /llvm/trunk/utils/TableGen/CodeEmitterGen.cpp

Evan Cheng evan.cheng at apple.com
Mon Sep 8 09:42:43 PDT 2008


Does it? One is to suppress a "use of undefined value", the other is  
"defined but not used".

Evan

On Sep 8, 2008, at 9:26 AM, Dan Gohman wrote:

> On Sun, September 7, 2008 2:00 am, Evan Cheng wrote:
>> Author: evancheng
>> Date: Sun Sep  7 04:00:57 2008
>> New Revision: 55878
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=55878&view=rev
>> Log:
>> Eliminate a compile time warning.
>
>> -    << "  unsigned op;\n"
>> +    << "  unsigned op = 0;\n"
>>     << "  op = op;  // suppress warning\n"
>
> This obviates the "op = op" line.
>
> Dan
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list