[llvm-commits] [llvm] r101299 - /llvm/trunk/include/llvm/IntrinsicInst.h

Dan Gohman gohman at apple.com
Thu Apr 15 11:34:30 PDT 2010


On Apr 14, 2010, at 5:22 PM, Dale Johannesen wrote:

> 
> On Apr 14, 2010, at 4:43 PMPDT, Dan Gohman wrote:
> 
>> 
>> 
>> On Apr 14, 2010, at 3:27 PM, Dale Johannesen <dalej at apple.com> wrote:
>> 
>>> 
>>> On Apr 14, 2010, at 3:23 PMPDT, Dan Gohman wrote:
>>> 
>>>> Author: djg
>>>> Date: Wed Apr 14 17:23:05 2010
>>>> New Revision: 101299
>>>> 
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=101299&view=rev
>>>> Log:
>>>> Remove a const here. This makes this function consistent with all the
>>>> other getOperand wrappers, and it makes it easier to use with DebugInfo
>>>> code, which isn't currently prepared to see const MDNode *.
>>> 
>>> Please don't do this.  The MDNode is not changing any more by the time we get here, and should be referenced through const*; it's a useful precaution.
>> 
>> DebugInfo does not use const on any of its MDNodes.  Should someone fix that, I'd happily revert this patch.
> 
> Right, there's a PR for that.  It doesn't mean we should do the wrong thing somewhere else to compensate.

I made this change in order to allow me to add a lot of const
qualifiers elsewhere. The changes are now checked in, so if you
still believe 101299 is wrong, please suggest how to fix, given
the other changes.

Dan





More information about the llvm-commits mailing list