[llvm-commits] [llvm] r141313 - /llvm/trunk/lib/VMCore/Core.cpp
Matt Beaumont-Gay
matthewbg at google.com
Thu Oct 6 13:59:10 PDT 2011
Author: matthewbg
Date: Thu Oct 6 15:59:09 2011
New Revision: 141313
URL: http://llvm.org/viewvc/llvm-project?rev=141313&view=rev
Log:
Fix -asserts build
Modified:
llvm/trunk/lib/VMCore/Core.cpp
Modified: llvm/trunk/lib/VMCore/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Core.cpp?rev=141313&r1=141312&r2=141313&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Core.cpp (original)
+++ llvm/trunk/lib/VMCore/Core.cpp Thu Oct 6 15:59:09 2011
@@ -666,6 +666,7 @@
default:
assert(false && "Unhandled Opcode.");
}
+ return static_cast<LLVMOpcode>(0);
}
static int map_from_llvmopcode(LLVMOpcode code)
@@ -677,6 +678,7 @@
default:
assert(false && "Unhandled Opcode.");
}
+ return 0;
}
/*--.. Constant expressions ................................................--*/
More information about the llvm-commits
mailing list