]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
Fix BrainF compilation.
authorFrancois Pichet <pichet2000@gmail.com>
Tue, 31 Jan 2012 09:35:01 +0000 (09:35 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Tue, 31 Jan 2012 09:35:01 +0000 (09:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149375 91177308-0d34-0410-b5e6-96231b3b80d8

examples/BrainF/BrainF.cpp

index df6687f2805e450d2b7cdae430cbdf463e133ba6..b002d1f496d2240da2e668e285c705424debc62b 100644 (file)
@@ -134,7 +134,8 @@ void BrainF::header(LLVMContext& C) {
   {
     //@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,