[clang] b284229 - [analyzer] Fix SValTest for LocAsInt test

Valeriy Savchenko via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 29 03:01:52 PDT 2021


Author: Valeriy Savchenko
Date: 2021-06-29T13:01:41+03:00
New Revision: b2842298cebf420ecb3750bf309021a7f37870c1

URL: https://github.com/llvm/llvm-project/commit/b2842298cebf420ecb3750bf309021a7f37870c1
DIFF: https://github.com/llvm/llvm-project/commit/b2842298cebf420ecb3750bf309021a7f37870c1.diff

LOG: [analyzer] Fix SValTest for LocAsInt test

Added: 
    

Modified: 
    clang/unittests/StaticAnalyzer/SValTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/StaticAnalyzer/SValTest.cpp b/clang/unittests/StaticAnalyzer/SValTest.cpp
index 0956984868384..ea10d69d2804e 100644
--- a/clang/unittests/StaticAnalyzer/SValTest.cpp
+++ b/clang/unittests/StaticAnalyzer/SValTest.cpp
@@ -166,7 +166,7 @@ void foo(int *x) {
   SVal A = getByName("a");
   ASSERT_FALSE(A.getType(Context).isNull());
   // TODO: Turn it into signed long
-  EXPECT_EQ(Context.UnsignedLongTy, A.getType(Context));
+  EXPECT_EQ(Context.getUIntPtrType(), A.getType(Context));
 
   SVal B = getByName("b");
   ASSERT_FALSE(B.getType(Context).isNull());


        


More information about the cfe-commits mailing list