-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
Bugzilla Link | 4061 |
Resolution | WONTFIX |
Resolved on | Jun 13, 2012 13:24 |
Version | unspecified |
OS | Linux |
CC | @akyrtzi,@lattner,@DougGregor,@tlattner |
Extended Description
/home/edwin/llvm-svn/llvm/include/llvm/ADT/APInt.h: In member function ‘bool clang::Expr::isIntegerConstantExpr(llvm::APSInt&, clang::ASTContext&, clang::SourceLocation*, bool) const’:
/home/edwin/llvm-svn/llvm/include/llvm/ADT/APInt.h:99: warning: dereferencing pointer ‘’ does break strict-aliasing rules
/home/edwin/llvm-svn/llvm/include/llvm/ADT/APInt.h:548: warning: dereferencing pointer ‘’ does break strict-aliasing rules
/home/edwin/llvm-svn/llvm/include/llvm/ADT/APInt.h:549: warning: dereferencing pointer ‘’ does break strict-aliasing rules
/home/edwin/llvm-svn/llvm/include/llvm/ADT/APSInt.h:38: warning: dereferencing pointer ‘’ does break strict-aliasing rules
Expr.cpp:1334: note: initialized from here
The location info for the warning is not accurate (it doesn't show the very line causing the violation), but the aliasing violation is real:
return (APSInt)(void*)Data;
See URL for a possible solution.