From: Pete Cooper Date: Wed, 20 May 2015 17:17:45 +0000 (+0000) Subject: Use Intrinsic::ID instead of unsigned. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c226ce73b340cee359d7fb2e81ca946d19426baa;p=clang Use Intrinsic::ID instead of unsigned. NFC. This is after LLVM r237810 which made Function::getIntrinsicID() return an Intrinsic::ID. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237811 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 7c091923b3..400506129e 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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; }