[llvm-commits] [llvm] r48686 - in /llvm/trunk: lib/VMCore/Verifier.cpp test/Verifier/aliasing-chain.ll

Anton Korobeynikov asl at math.spbu.ru
Sat Mar 22 01:37:05 PDT 2008


Author: asl
Date: Sat Mar 22 03:37:05 2008
New Revision: 48686

URL: http://llvm.org/viewvc/llvm-project?rev=48686&view=rev
Log:
Add testcase for prev. commit. Minor fixes

Added:
    llvm/trunk/test/Verifier/aliasing-chain.ll
Modified:
    llvm/trunk/lib/VMCore/Verifier.cpp

Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=48686&r1=48685&r2=48686&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Sat Mar 22 03:37:05 2008
@@ -379,9 +379,9 @@
   }
 
   const GlobalValue* Aliasee = GA.resolveAliasedGlobal();
+  const GlobalValue* Aliasee = GA.resolveAliasedGlobal();
   Assert1(Aliasee,
-          "Aliasing chain should end with global function or global variable",
-          &GA);
+          "Aliasing chain should end with function or global variable", &GA);
 
   visitGlobalValue(GA);
 }

Added: llvm/trunk/test/Verifier/aliasing-chain.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Verifier/aliasing-chain.ll?rev=48686&view=auto

==============================================================================
--- llvm/trunk/test/Verifier/aliasing-chain.ll (added)
+++ llvm/trunk/test/Verifier/aliasing-chain.ll Sat Mar 22 03:37:05 2008
@@ -0,0 +1,6 @@
+; RUN:  not llvm-as -f %s -o /dev/null |& grep {Aliasing chain should end with function or global variable}
+
+; Test that alising chain does not create a cycle
+
+ at b1 = alias i32* @c1
+ at c1 = alias i32* @b1





More information about the llvm-commits mailing list