From 47a3785062cfc336e31d84b293c752f01d166d92 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 26 Apr 2005 22:49:48 +0000 Subject: [PATCH] No, seriously folks, memcpy really does return void. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21575 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/SimplifyLibCalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp index a776d38dc55..656cbfc6bdc 100644 --- a/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp @@ -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 -- 2.34.1