Skip to content

Commit afc6da4

Browse files
committed
[clang][dataflow] Silence unused variable warning. NFCI
1 parent 8f683b5 commit afc6da4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/include/clang/Analysis/FlowSensitive/CachedConstAccessorsLattice.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,8 @@ StorageLocation *
193193
CachedConstAccessorsLattice<Base>::getOrCreateConstMethodReturnStorageLocation(
194194
const RecordStorageLocation &RecordLoc, const CallExpr *CE,
195195
Environment &Env, llvm::function_ref<void(StorageLocation &)> Initialize) {
196-
QualType Type = CE->getType();
197-
assert(!Type.isNull());
198-
assert(CE->isGLValue() || Type->isRecordType());
196+
assert(!CE->getType().isNull());
197+
assert(CE->isGLValue() || CE->getType()->isRecordType());
199198
auto &ObjMap = ConstMethodReturnStorageLocations[&RecordLoc];
200199
const FunctionDecl *DirectCallee = CE->getDirectCallee();
201200
if (DirectCallee == nullptr)

0 commit comments

Comments
 (0)