[cfe-commits] r79895 - /cfe/trunk/lib/Sema/TreeTransform.h
Chris Lattner
sabre at nondot.org
Sun Aug 23 22:19:01 PDT 2009
Author: lattner
Date: Mon Aug 24 00:19:01 2009
New Revision: 79895
URL: http://llvm.org/viewvc/llvm-project?rev=79895&view=rev
Log:
fix a GCC type punning warning.
Modified:
cfe/trunk/lib/Sema/TreeTransform.h
Modified: cfe/trunk/lib/Sema/TreeTransform.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/TreeTransform.h?rev=79895&r1=79894&r2=79895&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/TreeTransform.h (original)
+++ cfe/trunk/lib/Sema/TreeTransform.h Mon Aug 24 00:19:01 2009
@@ -1164,13 +1164,11 @@
SourceLocation LParenLoc,
ExprArg SubExpr,
SourceLocation RParenLoc) {
- Expr *Sub = SubExpr.takeAs<Expr>();
+ void *Sub = SubExpr.takeAs<Expr>();
return getSema().ActOnCXXTypeConstructExpr(TypeRange,
T.getAsOpaquePtr(),
LParenLoc,
- Sema::MultiExprArg(getSema(),
- (void **)&Sub,
- 1),
+ Sema::MultiExprArg(getSema(), &Sub, 1),
/*CommaLocs=*/0,
RParenLoc);
}
More information about the cfe-commits
mailing list