[cfe-commits] r44963 - /cfe/trunk/CodeGen/CodeGenModule.cpp
Chris Lattner
sabre at nondot.org
Wed Dec 12 15:46:37 PST 2007
Author: lattner
Date: Wed Dec 12 17:46:36 2007
New Revision: 44963
URL: http://llvm.org/viewvc/llvm-project?rev=44963&view=rev
Log:
fix off-by-one error.
Modified:
cfe/trunk/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenModule.cpp?rev=44963&r1=44962&r2=44963&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/CodeGen/CodeGenModule.cpp Wed Dec 12 17:46:36 2007
@@ -519,7 +519,7 @@
/// getBuiltinLibFunction
llvm::Function *CodeGenModule::getBuiltinLibFunction(unsigned BuiltinID) {
if (BuiltinFunctions.size() <= BuiltinID)
- BuiltinFunctions.resize(BuiltinID);
+ BuiltinFunctions.resize(BuiltinID+1);
// Already available?
llvm::Function *&FunctionSlot = BuiltinFunctions[BuiltinID];
More information about the cfe-commits
mailing list