mehdi_amini added inline comments.

================
Comment at: cfe/trunk/lib/CodeGen/CodeGenModule.cpp:3759
+  unsigned AddrSpace =
+      VD ? GetGlobalVarAddressSpace(VD) : MaterializedType.getAddressSpace();
+  auto TargetAS = getContext().getTargetAddressSpace(AddrSpace);
----------------
Coverity reports: 
```
>>>     CID 1377397:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "VD" suggests that it may be null, but it has already 
>>> been dereferenced on all paths leading to the check.
```

Can you look into this?


Repository:
  rL LLVM

https://reviews.llvm.org/D33842



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to