[llvm-commits] [llvm-gcc-4.2] r64948 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Wed Feb 18 12:22:28 PST 2009
Author: baldrick
Date: Wed Feb 18 14:22:28 2009
New Revision: 64948
URL: http://llvm.org/viewvc/llvm-project?rev=64948&view=rev
Log:
Remove the assumption that a function is returned
here (rather than an alias, for example).
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=64948&r1=64947&r2=64948&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed Feb 18 14:22:28 2009
@@ -3083,14 +3083,10 @@
case Type::FP128TyID: Name = "fabsl"; break;
}
- Function *F = cast<Function>(TheModule->getOrInsertFunction(Name,
- Op->getType(),
- Op->getType(),
- NULL));
- CallInst *Call = Builder.CreateCall(F, Op);
- F->setDoesNotThrow();
+ Value *V = TheModule->getOrInsertFunction(Name, Op->getType(), Op->getType(),
+ NULL);
+ CallInst *Call = Builder.CreateCall(V, Op);
Call->setDoesNotThrow();
- F->setDoesNotAccessMemory();
Call->setDoesNotAccessMemory();
return Call;
}
More information about the llvm-commits
mailing list