No, seriously folks, memcpy really does return void.
authorReid Spencer <rspencer@reidspencer.com>
Tue, 26 Apr 2005 22:49:48 +0000 (22:49 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 26 Apr 2005 22:49:48 +0000 (22:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21575 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SimplifyLibCalls.cpp

index a776d38dc55c571162d6cf26944709f2df5a8cee..656cbfc6bdc7a12c7042d44216a08565344de782 100644 (file)
@@ -535,7 +535,7 @@ public:
   {
     // Just make sure this has 4 arguments per LLVM spec.
     return (f->arg_size() == 4) && 
-           (f->getReturnType() == PointerType::get(Type::VoidTy));
+           (f->getReturnType() == Type::VoidTy);
   }
 
   /// Because of alignment and instruction information that we don't have, we