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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user