[LLVMbugs] [Bug 22802] Void functions marked with pure attribute are not called
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 5 06:17:32 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22802
Michael Kuperstein <michael.m.kuperstein at intel.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |michael.m.kuperstein at intel.
| |com
Resolution|--- |INVALID
--- Comment #1 from Michael Kuperstein <michael.m.kuperstein at intel.com> ---
__attribute__((pure)) functions are assumed not to have any side effects. That
includes writing to memory, even if it's writing through a pointer provided as
a function argument.
Marking this function with "pure" simply doesn't make sense.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150305/dcd59836/attachment.html>
More information about the llvm-bugs
mailing list