diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-06-04 20:08:47 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-06-04 20:08:47 +0000 | 
| commit | a485efa141f26c9049bc2e3ca5125aaf15e63a54 (patch) | |
| tree | 5d3435731d129dc52df43d21d80c8b50d6374bbf /llvm | |
| parent | efafdf804601e0601d98605ba0dd0683437cdba3 (diff) | |
| download | bcm5719-llvm-a485efa141f26c9049bc2e3ca5125aaf15e63a54.tar.gz bcm5719-llvm-a485efa141f26c9049bc2e3ca5125aaf15e63a54.zip  | |
Make this work with counter > 127
llvm-svn: 6613
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp b/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp index ed3b63e81fc..7b9810748fb 100644 --- a/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp +++ b/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp @@ -37,7 +37,7 @@ bool EmitFunctionTable::run(Module &M){                                            cstruct, "llvmFunctionTable");    M.getGlobalList().push_back(gb); -  ConstantInt *cnst = ConstantInt::get(Type::IntTy, counter);  +  ConstantInt *cnst = ConstantSInt::get(Type::IntTy, counter);     GlobalVariable *fnCount = new GlobalVariable(Type::IntTy, true,   					       GlobalValue::ExternalLinkage,   					       cnst, "llvmFunctionCount");  | 

