]> granicus.if.org Git - llvm/commitdiff
[Attributor] Remove unused variable. NFC.
authorMichael Liao <michael.hliao@gmail.com>
Tue, 20 Aug 2019 21:02:31 +0000 (21:02 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Tue, 20 Aug 2019 21:02:31 +0000 (21:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369444 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Attributor.cpp

index 4cdb385c3e30392fd27fecbe3b454caadbdfd928..bbd14d7c0c962b3338bf3f045c228b5caf9f768c 100644 (file)
@@ -1628,7 +1628,7 @@ struct AAIsDeadImpl : public AAIsDead {
         /// the callee is nounwind and noreturn. Otherwise, we keep the invoke
         /// and only place an unreachable in the normal successor.
         if (Invoke2CallAllowed) {
-          if (Function *Callee = II->getCalledFunction()) {
+          if (II->getCalledFunction()) {
             const IRPosition &IPos = IRPosition::callsite_function(*II);
             const auto &AANoUnw = A.getAAFor<AANoUnwind>(*this, IPos);
             if (AANoUnw.isAssumedNoUnwind()) {