IRgen/Darwin: Fix refacto introduced in Triple changes.

llvm-svn: 130233
This commit is contained in:
Daniel Dunbar
2011-04-26 19:43:00 +00:00
parent a4fa5ce911
commit a59b0a6e3c
2 changed files with 19 additions and 1 deletions

View File

@@ -266,7 +266,7 @@ static bool PersonalityHasOnlyCXXUses(llvm::Constant *Fn) {
/// when it really needs it.
void CodeGenModule::SimplifyPersonality() {
// For now, this is really a Darwin-specific operation.
if (Context.Target.getTriple().isOSDarwin())
if (!Context.Target.getTriple().isOSDarwin())
return;
// If we're not in ObjC++ -fexceptions, there's nothing to do.