diff options
Diffstat (limited to 'lib/Module')
-rw-r--r-- | lib/Module/RaiseAsm.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp index cd8f7934..55550864 100644 --- a/lib/Module/RaiseAsm.cpp +++ b/lib/Module/RaiseAsm.cpp @@ -63,10 +63,9 @@ bool RaiseAsmPass::runOnInstruction(Module &M, Instruction *I) { if (TLI->ExpandInlineAsm(ci)) return true; - if (triple.getArch() == llvm::Triple::x86_64 && - (triple.getOS() == llvm::Triple::Linux || - triple.getOS() == llvm::Triple::Darwin || - triple.getOS() == llvm::Triple::FreeBSD)) { + if ((triple.getArch() == llvm::Triple::x86 || + triple.getArch() == llvm::Triple::x86_64) && + (triple.isOSLinux() || triple.isMacOSX() || triple.isOSFreeBSD())) { if (ia->getAsmString() == "" && ia->hasSideEffects() && ia->getFunctionType()->getReturnType()->isVoidTy()) { |