Perhaps a warning should be added so code doesn't "miscompile" when compiled 
with GCC?

Is there a reason to restrict this just to null pointer constants?

================
Comment at: lib/CodeGen/CGCall.cpp:2601
@@ +2600,3 @@
+                                 Expr::NPC_ValueDependentIsNotNull)) {
+    llvm::errs() << "getVarArgType, getIntPtrType\n";
+    return getContext().getIntPtrType();
----------------
This should be removed.

http://reviews.llvm.org/D5480



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to