[llvm] cb21b16 - Add a diagnostic string to an assert.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 16:35:13 PDT 2020


Author: Eric Christopher
Date: 2020-06-11T16:34:55-07:00
New Revision: cb21b16822ebdade8aef90c4d0f6ad0d495bfbb0

URL: https://github.com/llvm/llvm-project/commit/cb21b16822ebdade8aef90c4d0f6ad0d495bfbb0
DIFF: https://github.com/llvm/llvm-project/commit/cb21b16822ebdade8aef90c4d0f6ad0d495bfbb0.diff

LOG: Add a diagnostic string to an assert.

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86FastISel.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 74b4b7bb78c4..47361da75994 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -3408,7 +3408,7 @@ bool X86FastISel::fastLowerCall(CallLoweringInfo &CLI) {
               TII.get(TargetOpcode::COPY), VA.getLocReg()).addReg(ArgReg);
       OutRegs.push_back(VA.getLocReg());
     } else {
-      assert(VA.isMemLoc());
+      assert(VA.isMemLoc() && "Unknown value location!");
 
       // Don't emit stores for undef values.
       if (isa<UndefValue>(ArgVal))


        


More information about the llvm-commits mailing list