Change another is-a-pointer check to check in terms of LLVM type.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55312 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 963aeaf..11d1e8d 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -336,7 +336,7 @@
     return Builder.CreateFCmpUNE(Src, Zero, "tobool");
   }
   
-  assert((SrcType->isIntegerType() || SrcType->isPointerType()) &&
+  assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) &&
          "Unknown scalar type to convert");
   
   // Because of the type rules of C, we often end up computing a logical value,