[PATCH] Promote NPCs used as arguments to variadic functions

Richard Smith richard at metafoo.co.uk
Thu Oct 9 16:04:08 PDT 2014


================
Comment at: test/CodeGenCXX/varargs.cpp:18-19
@@ -16,3 +17,4 @@
   void test() {
-    test1(0);
+    test1(0); // The zero gets implicitly widened.
+    test1(1);
   }
----------------
The comment is a lie...

http://reviews.llvm.org/D5480






More information about the cfe-commits mailing list