[llvm] r265549 - [AArch64] Use the default constructor of RegisterBankInfo when GlobalISel is not built.

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 08:53:13 PDT 2016


Author: qcolombet
Date: Wed Apr  6 10:53:13 2016
New Revision: 265549

URL: http://llvm.org/viewvc/llvm-project?rev=265549&view=rev
Log:
[AArch64] Use the default constructor of RegisterBankInfo when GlobalISel is not built.
This will avoid link-time error as the defautl constructor of RegisterBankInfo is
the only one available when GlobalISel is not built.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp?rev=265549&r1=265548&r2=265549&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp Wed Apr  6 10:53:13 2016
@@ -22,7 +22,7 @@ using namespace llvm;
 
 #ifndef LLVM_BUILD_GLOBAL_ISEL
 AArch64RegisterBankInfo::AArch64RegisterBankInfo(const TargetRegisterInfo &TRI)
-    : RegisterBankInfo(0) {
+    : RegisterBankInfo() {
   llvm_unreachable("This API shouldn't be useful outside of GlobalISel");
 }
 




More information about the llvm-commits mailing list