[llvm-commits] [dragonegg] r137554 - /dragonegg/trunk/src/Constants.cpp

Duncan Sands baldrick at free.fr
Sat Aug 13 06:22:51 PDT 2011


Author: baldrick
Date: Sat Aug 13 08:22:51 2011
New Revision: 137554

URL: http://llvm.org/viewvc/llvm-project?rev=137554&view=rev
Log:
Now that we use a WeakVH to track globals, this may be a bitcast
of a global (due to RAUW) rather than a global.

Modified:
    dragonegg/trunk/src/Constants.cpp

Modified: dragonegg/trunk/src/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Constants.cpp?rev=137554&r1=137553&r2=137554&view=diff
==============================================================================
--- dragonegg/trunk/src/Constants.cpp (original)
+++ dragonegg/trunk/src/Constants.cpp Sat Aug 13 08:22:51 2011
@@ -1467,7 +1467,7 @@
 
 /// AddressOfDecl - Return the address of a global.
 static Constant *AddressOfDecl(tree exp, TargetFolder &) {
-  return cast<GlobalValue>(DEFINITION_LLVM(exp));
+  return cast<Constant>(DEFINITION_LLVM(exp));
 }
 
 /// AddressOfINDIRECT_REF - Return the address of a dereference.





More information about the llvm-commits mailing list