]> granicus.if.org Git - clang/commitdiff
Use Intrinsic::ID instead of unsigned. NFC.
authorPete Cooper <peter_cooper@apple.com>
Wed, 20 May 2015 17:17:45 +0000 (17:17 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 20 May 2015 17:17:45 +0000 (17:17 +0000)
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

lib/CodeGen/CodeGenModule.cpp

index 7c091923b31db06612ad9aad974768ac598e395c..400506129e6490f7bfc2f2be4afd38267e95b6eb 100644 (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;
   }