diff options
author | John McCall <rjmccall@apple.com> | 2011-02-08 08:22:06 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-08 08:22:06 +0000 |
commit | ad7c5c1657f2504537bb62298f9372873c63d508 (patch) | |
tree | 2a6f5a80a514910228be09928ec2b813f131681c /clang/lib/CodeGen/CGCleanup.cpp | |
parent | f9399453c38f8c7ea5d2784847119937c440e40e (diff) | |
download | bcm5719-llvm-ad7c5c1657f2504537bb62298f9372873c63d508.tar.gz bcm5719-llvm-ad7c5c1657f2504537bb62298f9372873c63d508.zip |
Reorganize CodeGen{Function,Module} to eliminate the unfortunate
Block{Function,Module} base class. Minor other refactorings.
Fixed a few address-space bugs while I was there.
llvm-svn: 125085
Diffstat (limited to 'clang/lib/CodeGen/CGCleanup.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCleanup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp index 3c4d80f2360..374ede880d2 100644 --- a/clang/lib/CodeGen/CGCleanup.cpp +++ b/clang/lib/CodeGen/CGCleanup.cpp @@ -784,7 +784,7 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) { // Optimistically hope that any fixups will continue falling through. for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); I < E; ++I) { - BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); + BranchFixup &Fixup = EHStack.getBranchFixup(I); if (!Fixup.Destination) continue; if (!Fixup.OptimisticBranchBlock) { new llvm::StoreInst(Builder.getInt32(Fixup.DestinationIndex), @@ -846,7 +846,7 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) { if (NewNormalEntry != NormalEntry && NormalEntry == NormalExit) for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); I < E; ++I) - CGF.EHStack.getBranchFixup(I).OptimisticBranchBlock = NewNormalEntry; + EHStack.getBranchFixup(I).OptimisticBranchBlock = NewNormalEntry; } } |