Use Intrinsic::ID instead of unsigned. NFC.

This is after LLVM r237810 which made Function::getIntrinsicID() return an Intrinsic::ID.

llvm-svn: 237811
This commit is contained in:
Pete Cooper
2015-05-20 17:17:45 +00:00
parent 9e1d335697
commit 2f1637ad85

View File

@@ -859,11 +859,10 @@ static void setLinkageAndVisibilityForGV(llvm::GlobalValue *GV,
void CodeGenModule::SetFunctionAttributes(GlobalDecl GD, llvm::Function *F,
bool IsIncompleteFunction,
bool IsThunk) {
if (unsigned IID = F->getIntrinsicID()) {
if (llvm::Intrinsic::ID IID = F->getIntrinsicID()) {
// If this is an intrinsic function, set the function's attributes
// to the intrinsic's attributes.
F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(),
(llvm::Intrinsic::ID)IID));
F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(), IID));
return;
}