fix a GCC type punning warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79895 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h
index a001254..258993e 100644
--- a/lib/Sema/TreeTransform.h
+++ b/lib/Sema/TreeTransform.h
@@ -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);
}