Minor code cleanup /NFC

llvm-svn: 265025
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
index c8f6bb2..50a65b9 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
@@ -333,11 +333,13 @@
   PGOIndirectCallSiteVisitor() {}
 
   void visitCallSite(CallSite CS) {
-    Instruction *I = CS.getInstruction();
-    CallInst *CI = dyn_cast<CallInst>(I);
-    if (CS.getCalledFunction() || !CS.getCalledValue() ||
-        (CI && CI->isInlineAsm()))
+    if (CS.getCalledFunction() || !CS.getCalledValue())
       return;
+    Instruction *I = CS.getInstruction();
+    if (CallInst *CI = dyn_cast<CallInst>(I)) {
+      if (CI->isInlineAsm())
+        return;
+    }
     IndirectCallInsts.push_back(I);
   }
 };