[llvm] r189279 - Fix thinko.
Eric Christopher
echristo at gmail.com
Mon Aug 26 14:26:34 PDT 2013
On Mon, Aug 26, 2013 at 2:12 PM, David Blaikie <dblaikie at gmail.com> wrote:
> On Mon, Aug 26, 2013 at 1:58 PM, Eric Christopher <echristo at gmail.com> wrote:
>> Author: echristo
>> Date: Mon Aug 26 15:58:35 2013
>> New Revision: 189279
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=189279&view=rev
>> Log:
>> Fix thinko.
>>
>> Modified:
>> llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
>>
>> Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=189279&r1=189278&r2=189279&view=diff
>> ==============================================================================
>> --- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
>> +++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Aug 26 15:58:35 2013
>> @@ -210,7 +210,7 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Mo
>> if (DwarfAccelTables == Default)
>> HasDwarfAccelTables = IsDarwin;
>> else
>> - HasDwarfAccelTables = DwarfAccelTables = Enable;
>> + HasDwarfAccelTables = DwarfAccelTables == Enable;
>
> We were just talking earlier today about adding a warning for this
> sort of thing...
>
> (specifically it came up in:
>
> struct foo {
> int m;
> bool operator==(const foo& f) {
> return m = f.m;
> }
> };
>
> )
>
Nice. Worry about the false positives for this sort of case, but...
-eric
More information about the llvm-commits
mailing list