Hi klimek,

http://llvm-reviews.chandlerc.com/D720

Files:
  include/clang/AST/Expr.h

Index: include/clang/AST/Expr.h
===================================================================
--- include/clang/AST/Expr.h
+++ include/clang/AST/Expr.h
@@ -647,7 +647,7 @@
   static QualType findBoundMemberType(const Expr *expr);
 
   /// IgnoreImpCasts - Skip past any implicit casts which might
-  /// surround this expression.  Only skips ImplicitCastExprs.
+  /// surround this expression.
   Expr *IgnoreImpCasts() LLVM_READONLY;
 
   /// IgnoreImplicit - Skip past any implicit AST nodes which might
@@ -2757,7 +2757,7 @@
 inline Expr *Expr::IgnoreImpCasts() {
   Expr *e = this;
   while (ImplicitCastExpr *ice = dyn_cast<ImplicitCastExpr>(e))
-    e = ice->getSubExpr();
+    e = ice->getSubExprAsWritten();
   return e;
 }
Index: include/clang/AST/Expr.h
===================================================================
--- include/clang/AST/Expr.h
+++ include/clang/AST/Expr.h
@@ -647,7 +647,7 @@
   static QualType findBoundMemberType(const Expr *expr);
 
   /// IgnoreImpCasts - Skip past any implicit casts which might
-  /// surround this expression.  Only skips ImplicitCastExprs.
+  /// surround this expression.
   Expr *IgnoreImpCasts() LLVM_READONLY;
 
   /// IgnoreImplicit - Skip past any implicit AST nodes which might
@@ -2757,7 +2757,7 @@
 inline Expr *Expr::IgnoreImpCasts() {
   Expr *e = this;
   while (ImplicitCastExpr *ice = dyn_cast<ImplicitCastExpr>(e))
-    e = ice->getSubExpr();
+    e = ice->getSubExprAsWritten();
   return e;
 }
 
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to