Fix build break in this code. Nothing uses this header, but the modules
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 13 Mar 2015 03:56:27 +0000 (03:56 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 13 Mar 2015 03:56:27 +0000 (03:56 +0000)
buildbot builds it anyway and was angry because of this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232139 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h

index 0e218e2e7f47fb102b138416fc912b486eda146e..b10a275b12e72031c9cd94da0f7ce287b1cae976 100644 (file)
@@ -274,7 +274,7 @@ private:
       // Set the compile actions for this module:
       for (auto &KVPair : NewStubInfos) {
         std::string BodyName = Mangle(KVPair->first + BodySuffix,
-                                      *M.getDataLayout());
+                                      M.getDataLayout());
         auto &CCInfo = KVPair->second;
         CCInfo.setCompileAction(
           [=](){
@@ -291,7 +291,7 @@ private:
 
     for (auto &KVPair : StubInfos) {
       std::string AddrName = Mangle(KVPair.first + AddrSuffix,
-                                    *M.getDataLayout());
+                                    M.getDataLayout());
       auto &CCInfo = KVPair.second;
       CCInfo.setUpdateAction(
         CompileCallbackMgr.getLocalFPUpdater(StubsH, AddrName));