[LLVMbugs] VirtualMem.cpp Warning

Bill? Wendling wendling at isanbard.org
Mon Nov 4 16:48:06 PST 2002


Hi,

The attached patch removes this warning from VirtualMem.cpp:

Compiling VirtualMem.cpp
VirtualMem.cpp: In member function `uint64_t VirtualMem::getBranchTarget(const 
   std::pair<uint64_t, uint64_t>&)':
VirtualMem.cpp:91: warning: control reaches end of non-void function
Linking ../../../lib/Debug/tracecache.o

The returned value doesn't matter since the assert will be executed. This
just gets rid of the warning.

-- 
|| Bill? Wendling			wendling at isanbard.org
-------------- next part --------------
Index: VirtualMem.cpp
===================================================================
RCS file: /home/faculty/vadve/cvs/llvm/lib/Reoptimizer/TraceCache/VirtualMem.cpp,v
retrieving revision 1.6
diff -a -u -r1.6 VirtualMem.cpp
--- VirtualMem.cpp	27 Oct 2002 19:10:31 -0000	1.6
+++ VirtualMem.cpp	5 Nov 2002 00:18:47 -0000
@@ -88,6 +88,7 @@
   
   //std::cerr<<(void *) instr<<"\n";
   assert(0 && "This branch type is not yet handled!");
+  return 0;
 }
 
 //write branch inst, followed by a null inst in delay slot


More information about the llvm-bugs mailing list