[llvm-commits] [llvm] r149375 - /llvm/trunk/examples/BrainF/BrainF.cpp

Francois Pichet pichet2000 at gmail.com
Tue Jan 31 01:35:01 PST 2012


Author: fpichet
Date: Tue Jan 31 03:35:01 2012
New Revision: 149375

URL: http://llvm.org/viewvc/llvm-project?rev=149375&view=rev
Log:
Fix BrainF compilation.

Modified:
    llvm/trunk/examples/BrainF/BrainF.cpp

Modified: llvm/trunk/examples/BrainF/BrainF.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/BrainF/BrainF.cpp?rev=149375&r1=149374&r2=149375&view=diff
==============================================================================
--- llvm/trunk/examples/BrainF/BrainF.cpp (original)
+++ llvm/trunk/examples/BrainF/BrainF.cpp Tue Jan 31 03:35:01 2012
@@ -134,7 +134,8 @@
   {
     //@aberrormsg = internal constant [%d x i8] c"\00"
     Constant *msg_0 =
-      ConstantArray::get(C, "Error: The head has left the tape.", true);
+      ConstantDataArray::getString(C, "Error: The head has left the tape.",
+                                   true);
 
     GlobalVariable *aberrormsg = new GlobalVariable(
       *module,





More information about the llvm-commits mailing list