<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Sorry, I just realized I should have
      posted it to llvm-commits.<br>
      <br>
      Cheers,<br>
      Marcello<br>
      <br>
      On 21/11/13 17:24, Marcello Maggioni wrote:<br>
    </div>
    <blockquote cite="mid:528E41C6.3070906@codeplay.com" type="cite">Hi,
      while using this function I noticed that
      Type::getScalarSizeInBits() is not marked as const even if inside
      its body it just uses only other "const" functions and types.
      <br>
      This prevents the usage of the function through const
      pointers/references to Type without any apparent reason.
      <br>
      <br>
      I propose of marking the function as const. (attached is a patch
      that does so).
      <br>
      <br>
      Cheers,
      <br>
      Marcello
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Marcello Maggioni

Compiler Engineer

 

Codeplay Software Ltd

45 York Place, Edinburgh, EH1 3HP

Tel: 0131 466 0503

Fax: 0131 557 6600

Website: <a class="moz-txt-link-freetext" href="http://www.codeplay.com">http://www.codeplay.com</a>

Twitter: <a class="moz-txt-link-freetext" href="https://twitter.com/@codeplaybiz">https://twitter.com/@codeplaybiz</a>

 

This email and any attachments may contain confidential and /or privileged information and  is for use  by the addressee only. If you are not the intended recipient, please notify Codeplay Software Ltd immediately and delete the message from your computer. You may not copy or forward it,or use or disclose its contents to any other person. Any views or other information in this message which do not relate to our business are not authorized by Codeplay software Ltd, nor does this message form part of any contract unless so stated.

As internet communications are capable of data corruption Codeplay Software Ltd does not accept any responsibility for any changes made to this message after it was sent. Please note that Codeplay Software Ltd does not accept any liability or responsibility for viruses and it is your responsibility to scan any attachments.

Company registered in England and Wales, number: 04567874

Registered office: 81 Linkfield Street, Redhill RH1 6BY </pre>
  </body>
</html>