[PATCH] Fix adress cast for C++ in SEMA

hfinkel at anl.gov hfinkel at anl.gov
Tue May 12 16:39:25 PDT 2015


================
Comment at: lib/Sema/Sema.cpp:351
@@ +350,3 @@
+  // If we are casting pointers, we need to make sure we deal with address
+  // spaces properly
+  if (Kind == CK_NoOp && ExprTy->isPointerType() && TypeTy->isPointerType() &&
----------------
Add a period to the end of the comment.

================
Comment at: lib/Sema/Sema.cpp:352
@@ +351,3 @@
+  // spaces properly
+  if (Kind == CK_NoOp && ExprTy->isPointerType() && TypeTy->isPointerType() &&
+      ExprTy->getPointeeType().getAddressSpace() !=
----------------
Does this apply to CK_LValueBitCast too?

http://reviews.llvm.org/D7606

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list