Looks terrible, go ahead. =)

================
Comment at: lib/Sema/SemaExpr.cpp:878-879
@@ -877,3 +877,4 @@
   // emitted along with format string checking in Sema::CheckFunctionCall().
-  if (isValidVarArgType(E->getType()) == VAK_Undefined) {
+  if (isValidVarArgType(E->getType()) == VAK_Undefined &&
+      !LangOpts.MSVCCompat) {
     // Turn this into a trap.
----------------
Maybe this should be a separate `VAK_` value, `VAK_ValidInMSVC` or similar?

http://reviews.llvm.org/D5492



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

Reply via email to