diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-12-12 23:46:36 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-12-12 23:46:36 +0000 |
| commit | b8bd2db8b37028bb6a53cb17fc20e31827ebbaba (patch) | |
| tree | bf304464127d4feeceefcfa965b9da049bd74fe1 /clang/CodeGen/CodeGenModule.cpp | |
| parent | 8fdd3d95eb704cebb1f21ba0e81c482a49865467 (diff) | |
| download | bcm5719-llvm-b8bd2db8b37028bb6a53cb17fc20e31827ebbaba.tar.gz bcm5719-llvm-b8bd2db8b37028bb6a53cb17fc20e31827ebbaba.zip | |
fix off-by-one error.
llvm-svn: 44963
Diffstat (limited to 'clang/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenModule.cpp b/clang/CodeGen/CodeGenModule.cpp index 30e15475589..47a0081b7b1 100644 --- a/clang/CodeGen/CodeGenModule.cpp +++ b/clang/CodeGen/CodeGenModule.cpp @@ -519,7 +519,7 @@ void CodeGenModule::EmitGlobalVarDeclarator(const FileVarDecl *D) { /// 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]; |

