diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-17 16:29:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-17 16:29:15 +0000 |
commit | 9f23dee08c7052af2c4baae3e2b06518896742eb (patch) | |
tree | 8230136cbb254fd262924c3c232c23085d356e3a /lib/CodeGen | |
parent | 383b5f6b91914454a9a8a6d829b4eeb714c75113 (diff) | |
download | external_llvm-9f23dee08c7052af2c4baae3e2b06518896742eb.zip external_llvm-9f23dee08c7052af2c4baae3e2b06518896742eb.tar.gz external_llvm-9f23dee08c7052af2c4baae3e2b06518896742eb.tar.bz2 |
Start function numbering at 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/MachineFunctionAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineFunctionAnalysis.cpp b/lib/CodeGen/MachineFunctionAnalysis.cpp index 3b2eb6d..07a0f45 100644 --- a/lib/CodeGen/MachineFunctionAnalysis.cpp +++ b/lib/CodeGen/MachineFunctionAnalysis.cpp @@ -44,7 +44,8 @@ bool MachineFunctionAnalysis::doInitialization(Module &M) { MachineModuleInfo *MMI = getAnalysisIfAvailable<MachineModuleInfo>(); assert(MMI && "MMI not around yet??"); MMI->setModule(&M); - NextFnNum = 1; return false; + NextFnNum = 0; + return false; } |