https://llvm.org/bugs/show_bug.cgi?id=28000
Bug ID: 28000 Summary: ASan tries to use 32-bit shift operations to create 64-bit results Product: compiler-rt Version: unspecified Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: compiler-rt Assignee: unassignedb...@nondot.org Reporter: hbbroe...@t-online.de CC: llvm-bugs@lists.llvm.org Classification: Unclassified There are dozens of rather worrying warnings from VisualStudio 2015 when compiling ASan for 64-bit WIndows, concerning constructs of the type uptr t = (1UL << n); where n is 32 or larger. This code will fail if type uptr is a 64-bit integer, while unsigned long, and thus "1UL", is 32-bit. That appears to be the case on Windows x86_64 builds. I think all such cases have to be changed to an equivalent of either uptr t = (1ULL << n); or uptr t = ((uptr)1 << n); -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs