[Orc] Try another workaround for the GCC 4.7.2 ICE introduced in r228557. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228568 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2015-02-09 07:47:32 +00:00
parent 9759a273fd
commit 7e44cee3e6
2 changed files with 7 additions and 7 deletions

View File

@ -45,12 +45,12 @@ private:
if (provides(Name, ExportedSymbolsOnly))
return JITSymbol(
[=,&B]() -> TargetAddress {
if (EmitState == Emitting)
if (this->EmitState == Emitting)
return 0;
else if (EmitState != Emitted) {
EmitState = Emitting;
Handle = emit(B);
EmitState = Emitted;
else if (this->EmitState != Emitted) {
this->EmitState = Emitting;
Handle = this->emit(B);
this->EmitState = Emitted;
}
return B.findSymbolIn(Handle, Name, ExportedSymbolsOnly)
.getAddress();

View File

@ -224,8 +224,8 @@ public:
[=](){
if (H->NeedsFinalization()) {
H->Finalize();
if (NotifyFinalized)
NotifyFinalized(H);
if (this->NotifyFinalized)
this->NotifyFinalized(H);
}
return Addr;
});