Return something (i.e. NULL) from an unimplemented virtual function.
authorOscar Fuentes <ofv@wanadoo.es>
Sun, 26 Oct 2008 04:26:33 +0000 (04:26 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Sun, 26 Oct 2008 04:26:33 +0000 (04:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58183 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetJITInfo.h

index 81e4c8757231ef2062164e9c26d1ac9f23dd65b2..142f0efbd3f5f71e3c22df8f8192ae7056a4589c 100644 (file)
@@ -100,6 +100,7 @@ namespace llvm {
     /// meaningful to the target.
     virtual char* allocateThreadLocalMemory(size_t size) {
       assert(0 && "This target does not implement thread local storage!");
+      return 0;
     }
 
     /// needsGOT - Allows a target to specify that it would like the